Skip to content

Commit 0c599ee

Browse files
authored
WiFiSTA - allow using DHCP again after disconnecting static IP (#9020)
1 parent 097e59f commit 0c599ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,8 @@ bool ESP8266WiFiSTAClass::disconnect(bool wifioff, bool eraseCredentials) {
400400
WiFi.enableSTA(false);
401401
}
402402

403+
_useStaticIp = false;
404+
403405
return ret;
404406
}
405407

0 commit comments

Comments
 (0)