a small change to revive my -C3 device

...this was a little innocent comment in the examples provided by the device manufacturer.
It seems that sometimes the WiFi radio does not switch on, and `WiFi.setTxPower(WIFI_POWER_5dBm);` properly initialized the "Raisun".
This commit is contained in:
Frank
2023-01-16 19:59:40 +01:00
committed by GitHub
parent 69345df28a
commit f71a8e8752

View File

@@ -776,6 +776,8 @@ void WLED::initConnection()
WiFi.begin(clientSSID, clientPass);
#ifdef ARDUINO_ARCH_ESP32
// WLEDMM - if your board has issues connecting to WiFi, try uncommenting this
// WiFi.setTxPower(WIFI_POWER_5dBm); // required for ESP32-C3FH4-RGB
WiFi.setSleep(!noWifiSleep);
WiFi.setHostname(hostname);
#else