https://forum.arduino.cc/index.php?topic=469094.msg3873673#msg3873673
P.S. Well it didn't last overnight, so I'll try the bottom approach.
A workaround is to replace
while ( status != WL_CONNECTED) {
with
while (WiFi.localIP().toString() == "0.0.0.0") {
P.S. I, also, found that in the BasicOTA example, it uses
while (WiFi.waitForConnectResult() != WL_CONNECTED)
This works too (for now).
1 Like