Closed dmitriyteteruk closed 4 years ago
I saw it too in my code. Once it is disconnected, it never recovers.
Hi @kobidetrenewan @dmitriyteteruk if you're still experiencing the disconnect issue, can you please DM me your app ID (can be found in Admin section), the device ID, and the SDK language you're using. We're looking to troubleshoot this.
Hi Luis, I found a mistake in my logic: I expected the on_connect() event to be re-triggered once the connection is reestablished and there I modified a private "canSend" variable, which dictates if the central loop tries to send the device data to the IOTC.. But the on_connect() event never re-triggered again. Now I changed the test of canSend to a call to the function iotc.isConnected() instead, and the communication is recovered properly.
Thank you, Kobi
Thanks for confirming @kobidetrenewan
Hi! I am getting error that result in Python app stop to send a message. Python 3.8.0, iotc 0.3.5, paho-mqtt from iotc 1.5.0, httplib2 from iotc 0.14.0. Any suggestions/ideas?