Merge pull request #339 from MoonModules/wifiscan_fix

Full WiFi scan (backport of upstream 5351)
This commit is contained in:
Frank Möhle
2026-02-06 15:03:13 +01:00
committed by GitHub

View File

@@ -777,6 +777,11 @@ void WLED::setup()
if (strcmp(clientSSID, DEFAULT_CLIENT_SSID) == 0)
showWelcomePage = true;
#if !defined(ESP8266) && (ESP_IDF_VERSION_MAJOR >= 4)
WiFi.setScanMethod(WIFI_ALL_CHANNEL_SCAN); // bugfix: ensure that all channels are scanned, and the strongest signal is used
#endif
WiFi.persistent(false);
#ifdef WLED_USE_ETHERNET
WiFi.onEvent(WiFiEvent);