mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-19 08:42:34 +01:00
Connect Wifi to strongest AP
* do full channel scan * connect to strongest AP
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user