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