You are reading a single comment by @Frida and its replies. Click here to read the full conversation.
  • 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');
        }
      });
    
    
About

Avatar for Frida @Frida started