Skip to content

Commit

Permalink
Pick SSID with strongest RSSI in mesh networks with multiple identica…
Browse files Browse the repository at this point in the history
…l SSIDs (ExpressLRS#2536)

* scan all channels prior to connecting to SSID

* esp32 only
  • Loading branch information
mha1 authored Jan 18, 2024
1 parent a8420a0 commit a4f1657
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/WIFI/devWIFI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,10 @@ static void HandleWebUpdate()
WiFi.setHostname(wifi_hostname); // hostname must be set after the mode is set to STA
#endif
changeTime = now;
#if defined(PLATFORM_ESP32)
WiFi.setSortMethod(WIFI_CONNECT_AP_BY_SIGNAL);
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN);
#endif
WiFi.begin(station_ssid, station_password);
startServices();
default:
Expand Down

0 comments on commit a4f1657

Please sign in to comment.