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 .......
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.
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:
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 .......