Fix: Optimize network connection handling
This should provide a more reliable connection to several AP types. See #576
This commit is contained in:
parent
892230b153
commit
cbbe053cd5
@ -13,7 +13,7 @@
|
||||
#define AUTH_USERNAME "admin"
|
||||
#define SECURITY_ALLOW_READONLY true
|
||||
|
||||
#define WIFI_RECONNECT_TIMEOUT 15
|
||||
#define WIFI_RECONNECT_TIMEOUT 30
|
||||
#define WIFI_RECONNECT_REDO_TIMEOUT 600
|
||||
|
||||
#define WIFI_SSID ""
|
||||
|
||||
@ -268,7 +268,8 @@ void NetworkSettingsClass::applyConfig()
|
||||
MessageOutput.print("new credentials... ");
|
||||
WiFi.begin(
|
||||
Configuration.get().WiFi.Ssid,
|
||||
Configuration.get().WiFi.Password);
|
||||
Configuration.get().WiFi.Password,
|
||||
WIFI_ALL_CHANNEL_SCAN);
|
||||
} else {
|
||||
MessageOutput.print("existing credentials... ");
|
||||
WiFi.begin();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user