Skip to content

Commit

Permalink
WiFiSTA - allow using DHCP again after disconnecting static IP (esp82…
Browse files Browse the repository at this point in the history
  • Loading branch information
JAndrassy committed Nov 10, 2023
1 parent 097e59f commit 0c599ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/ESP8266WiFi/src/ESP8266WiFiSTA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,8 @@ bool ESP8266WiFiSTAClass::disconnect(bool wifioff, bool eraseCredentials) {
WiFi.enableSTA(false);
}

_useStaticIp = false;

return ret;
}

Expand Down

0 comments on commit 0c599ee

Please sign in to comment.