Fix: Wifi.begin was called with wrong parameters

The third parameter should be a optional channel name and not a scan method. There exists a separate method for the scan method.
This commit is contained in:
Thomas Basler 2024-12-18 23:00:27 +01:00
parent d485d1b820
commit 96ba58af8c

View File

@ -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();