Skip to content

Commit

Permalink
restored workaround for some ESP32C3 WiFi connection issue:
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Jan 13, 2025
1 parent 85be440 commit c9b3eff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ESP32WifiCLI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,10 @@ void ESP32WifiCLI::wifiAPConnect(bool save) {
int retry = 0;
WiFi.begin(temp_ssid.c_str(), temp_pasw.c_str());

#if CONFIG_IDF_TARGET_ESP32C3
WiFi.setTxPower(WIFI_POWER_8_5dBm);
#endif

while (WiFi.status() != WL_CONNECTED && retry++ < 20) { // M5Atom will connect automatically
delay(1000);
if (!silent) Serial.print(".");
Expand Down

0 comments on commit c9b3eff

Please sign in to comment.