Azure / azure-iot-sdk-python

A Python SDK for connecting devices to Microsoft Azure IoT services
MIT License
417 stars 374 forks source link

bugfix: sample: disconnect when all the messages are sent #1176

Open ks6088ts opened 3 months ago

ks6088ts commented 3 months ago

Description of the problem

Current implementation of the sync version of provision_symmetric_key.py calls disconnect API repeatedly, it seems weird.

Description of the solution

I think it would be correct just as the async version samples/async-hub-scenarios/provision_symmetric_key.py does.

ks6088ts commented 3 months ago

I'm not sure why the CI fails... Mentioning @olivakar , who is checked in the latest update. Could you take a look at it ?