I did alot of try and error on my esp8266, and I found out that this little snippet works for me.
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(); } });
@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 did alot of try and error on my esp8266, and I found out that this little snippet works for me.