Closed pwilga closed 4 months ago
retested on micropython 1.21.0 - works without any issues
Evidently we were bot working on this for the last few hours :) I made the same discovery in response to #132 and pushed an update which does something similar.
indeed, awesome thank you !
Working on the https://github.com/peterhinch/micropython-mqtt/blob/master/mqtt_as/range.py example
It seems that on MP 1.22.1 mqtt_as can't establish Wifi connection after soft reboot:
The issue seems to be in the wifi_connect() method
To solve the issue I have added following state checks:
I'm not sure whether it should be fixed in that way (rely on the IDLE state might be tricky?)
works just fine (without any changes)