Skip to content

Commit

Permalink
Fix: Wifi reconnect issue introduced with #2117 and discussed in #2185
Browse files Browse the repository at this point in the history
…was fixed
  • Loading branch information
tbnobody committed Aug 5, 2024
1 parent e85001b commit cdaf10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit cdaf10a

Please sign in to comment.