You are reading a single comment by @MaBe and its replies. Click here to read the full conversation.
  • Wifi is not broken on 4.4.7, we need to understand that if the board is already connected a another connect will break things. The folowing code will check for that situation:

    var ssid="SSID";
    var password="password";
    
    var wifi=require("Wifi");
    wifi.stopAP(()=> {
         print(wifi.getStatus());
         var status = wifi.getStatus();
         if (status.ssid == ssid && status.station == "connected"){
           print(wifi.getIP());
         } else {
           wifi.connect(ssid, {password: password}, function() {
             print(wifi.getIP());
           });
         }
    });
    

    Line 8 is the breakthrough: Do not connect again if already connected

    You can upload this code as ofen as you like and the ESP32 board will not reboot!

    Edit:
    Wow, tested today and it is broken again .......

About

Avatar for MaBe @MaBe started