Connect Wifi to strongest AP
* do full channel scan * connect to strongest AP
This commit is contained in:
parent
cb7874ac8d
commit
09942e8e18
@ -121,6 +121,8 @@ void NetworkSettingsClass::setupMode()
|
||||
dnsServer->stop();
|
||||
dnsServerStatus = false;
|
||||
if (_networkMode == network_mode::WiFi) {
|
||||
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN);
|
||||
WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL);
|
||||
WiFi.mode(WIFI_STA);
|
||||
} else {
|
||||
WiFi.mode(WIFI_MODE_NULL);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user