What is the intent of JsNetworkState networkState in network.c? Specifically, in the case of the esp8266 when should it be NETWORKSTATE_ONLINE and when NETWORKSTATE_OFFLINE? Should it just reflect the presence of wifi and thus be always online, or should it toggle and only be on if there is a connection to an access point or the esp is in AP mode?
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
What is the intent of
JsNetworkState networkState
in network.c? Specifically, in the case of the esp8266 when should it be NETWORKSTATE_ONLINE and when NETWORKSTATE_OFFLINE? Should it just reflect the presence of wifi and thus be always online, or should it toggle and only be on if there is a connection to an access point or the esp is in AP mode?