Skip to content

Commit c9b3eff

Browse files
committed
restored workaround for some ESP32C3 WiFi connection issue:
espressif/arduino-esp32#6767
1 parent 85be440 commit c9b3eff

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/ESP32WifiCLI.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ void ESP32WifiCLI::wifiAPConnect(bool save) {
143143
int retry = 0;
144144
WiFi.begin(temp_ssid.c_str(), temp_pasw.c_str());
145145

146+
#if CONFIG_IDF_TARGET_ESP32C3
147+
WiFi.setTxPower(WIFI_POWER_8_5dBm);
148+
#endif
149+
146150
while (WiFi.status() != WL_CONNECTED && retry++ < 20) { // M5Atom will connect automatically
147151
delay(1000);
148152
if (!silent) Serial.print(".");

0 commit comments

Comments
 (0)