Closed mgk closed 8 years ago
I was just looking in to doing this same fix. Can this get merged?
Thanks. Just to followup I did see reconnecting work.
This should be fixed with the push here: https://github.com/adafruit/io-client-python/commit/508bf8a93486a40bb00cca9aa1f1889ca2c3c815 Now the disconnect handler should always be called, even if something unexpected happens.
Proposed fix for adafruit/io-client-python#11 : always call the registered
on_disconnect()
handler.I am testings this on an RPi and will update to confirm that reconnecting works with this change. It may take a day or so for the disconnect to occur.