Just to add, connecting and disconnecting the hotspot in quick succession will sometims leave the wifi status as AUTH_LEAVE and will not call the callback (because it technically isn't disconnected yet?)
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.
Just to add, connecting and disconnecting the hotspot in quick succession will sometims leave the wifi status as
AUTH_LEAVE
and will not call the callback (because it technically isn't disconnected yet?)