I had problems with one of my router so I did this feature:
var boola; function lan() { wlan.connect(logon.ssid, {password: logon.pass}, function (s) { boola = true; if(s==='bad password') { if(debug)console.log('restart lan'); lan(); } }); if(debug)console.log("Frida is my watchdog"); if(debug)console.log(wlan.getIP().ip); } // end lan() setTimeout(lan,400); wlan.on('connected', function(s) { if(debug)console.log('Starter test', wlan.getIP().ip); if(boola) { boola = false; startTimeServer(); if(debug)console.log('tilsluttet lan'); } });
@Frida 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.
I had problems with one of my router so I did this feature: