From c70d0352ea521e0baeb02185d57c4e0872f73d5f Mon Sep 17 00:00:00 2001 From: MichaelDvP Date: Mon, 25 Apr 2022 17:09:40 +0200 Subject: [PATCH] DHCP (works with framewaork 3.5.0) --- lib/framework/NetworkSettingsService.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/framework/NetworkSettingsService.cpp b/lib/framework/NetworkSettingsService.cpp index 6597bdf35..58739d47a 100644 --- a/lib/framework/NetworkSettingsService.cpp +++ b/lib/framework/NetworkSettingsService.cpp @@ -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