Nope, this is for http://www.espruino.com/WiFi - the Espruino board with Wifi on it
For now, you should be able to do:
wifi.at.registerLine("WIFI DISCONNECT", function() { ... });
I haven't tested that but I believe it should work.
However you should also be able to check wifi.getIP - if it fails then you'll know you're not connected.
wifi.getIP
@Gordon started
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.
Nope, this is for http://www.espruino.com/WiFi - the Espruino board with Wifi on it
For now, you should be able to do:
I haven't tested that but I believe it should work.
However you should also be able to check
wifi.getIP
- if it fails then you'll know you're not connected.