Question about networkState == ONLINE/OFFLINE #6657
Unanswered
espruino-discuss
asked this question in
Porting to new Devices
Replies: 1 comment
-
Posted at 2015-12-07 by @gfwilliams 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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-12-05 by tve
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?Beta Was this translation helpful? Give feedback.
All reactions