Reputation: 697
I am currently using the synchronous client from azure-iot-sdk here. I am experiencing some odd behavior which raises two questions:
I know some of this could be solved with switching to asyncio, but that would require a major rewrite.
UPDATE:
For future reference, there seems to be other people discussing these issues:
Upvotes: 0
Views: 534
Reputation: 43
It is not possible to set a timeout when using the synchronous client at this time. We are considering adding this support in the future, but currently it is unviable.
Yes, that is the only way of checking the connectivity. Running out of message quota has no bearing on whether or not the client is connected. There is unfortunately no way for us to report on the device side when the message quota has exceeded. You must keep track of your own quota.
Additionally, I would suggest that you file a GitHub issue if you are experiencing some kind of client hanging. This behavior is supposed to have been addressed - if this is occurring, we would like to know, and would like to see your logs.
-Carter, Microsoft developer, azure-iot-device SDK
Upvotes: 2