Skip to content

Commit

Permalink
Fix: Wifi.begin was called with wrong parameters
Browse files Browse the repository at this point in the history
The third parameter should be a optional channel name and not a scan method. There exists a separate method for the scan method.
  • Loading branch information
tbnobody committed Dec 18, 2024
1 parent d485d1b commit 96ba58a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/NetworkSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ void NetworkSettingsClass::applyConfig()
MessageOutput.print("new credentials... ");
WiFi.begin(
Configuration.get().WiFi.Ssid,
Configuration.get().WiFi.Password,
WIFI_ALL_CHANNEL_SCAN);
Configuration.get().WiFi.Password);
} else {
MessageOutput.print("existing credentials... ");
WiFi.begin();
Expand Down

0 comments on commit 96ba58a

Please sign in to comment.