Wifi.on \disconnected is not getting fired

Posted on
  • Hi,

    The following function is not printing Wifi disconnected! when wifi connection is dropped (I am manually turning off the AP on my cell phone):

    Wifi.on('disconnected', function(details){
      console.log("Wifi disconnected!", details);
      return sleep(2000, function(){
        return connectToWifi();
      });
    });
    

    What is wrong here?

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Wifi.on \disconnected is not getting fired

Posted by Avatar for ceremcem @ceremcem

Actions