mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-24 11:11:33 +01:00
This commit is contained in:
@@ -79,8 +79,8 @@ void NetworkSettingsClass::NetworkEvent(const WiFiEvent_t event)
|
||||
MessageOutput.println("WiFi disconnected");
|
||||
if (_networkMode == network_mode::WiFi) {
|
||||
MessageOutput.println("Try reconnecting");
|
||||
WiFi.disconnect(true, true);
|
||||
WiFi.reconnect();
|
||||
WiFi.disconnect(true, false);
|
||||
WiFi.begin();
|
||||
raiseEvent(network_event::NETWORK_DISCONNECTED);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user