Your last line, "onInit ();", do not save to flash.
When you reset, "onInit ();" run automatically.
And I'm waiting to start other features that rely on that
the wifi is connected like this.
wifi.connect (ssid, {password: password}, function () {
});
wifi.on ('connected', function () {
console.log ('Connected to Wifi. IP address is:', wifi.getIP () .ip);
server start ();
}
});
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.
Your last line, "onInit ();", do not save to flash.
When you reset, "onInit ();" run automatically.
And I'm waiting to start other features that rely on that
the wifi is connected like this.
Maybe it can help you further.