-
• #2
I'd set it only if there's a connection, but on things like Linux I just leave it set.
It was a while ago but IIRC it'll give you errors if you try and make an HTTP request/etc without having set up a connection, and the hope was that at some point I'd add something that would automatically look on the net for referenced modules if there was a network connection.
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?