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!
WIFI problems and wlan.status
Re: WIFI problems and wlan.status
These are constants defined by the network module. So if the result of WLAN.status() is equal to network.STAT_GOT_IP you have successfully connected, and so on.