WIFI problems and wlan.status
Posted: Thu Feb 24, 2022 1:51 pm
From time to time my WeMOS 8266 board loses WIFI connection, and can't re-establish without a reset.
In trying to find out what is going on, I am looking regularly at wlan.isconnected which is as expected, and wlan.status which is not.
The documentation (like https://docs.micropython.org/en/v1.10/l ... .WLAN.html) describes various states, but all I get back is a value like 0, 1, 5, 255. Where are these values described?
Sorry if I missed a simple answer, I have spent quite a while looking!
In trying to find out what is going on, I am looking regularly at wlan.isconnected which is as expected, and wlan.status which is not.
The documentation (like https://docs.micropython.org/en/v1.10/l ... .WLAN.html) describes various states, but all I get back is a value like 0, 1, 5, 255. Where are these values described?
Sorry if I missed a simple answer, I have spent quite a while looking!