Skip to content

Commit

Permalink
DHCP (works with framewaork 3.5.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDvP committed Apr 25, 2022
1 parent 9a8449e commit c70d035
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/framework/NetworkSettingsService.cpp
Expand Up @@ -57,8 +57,6 @@ void NetworkSettingsService::manageSTA() {
if ((WiFi.getMode() & WIFI_STA) == 0) {
if (_state.staticIPConfig) {
WiFi.config(_state.localIP, _state.gatewayIP, _state.subnetMask, _state.dnsIP1, _state.dnsIP2); // configure for static IP
} else {
WiFi.config(IPADDR_NONE, IPADDR_NONE, IPADDR_NONE); // configure for DHCP
}

WiFi.setHostname(_state.hostname.c_str()); // set hostname
Expand Down

0 comments on commit c70d035

Please sign in to comment.