Skip to content

Commit e6d7ccb

Browse files
committed
set tx power to -8.5 db (esp32-c3)
From espressif/arduino-esp32#6767 (comment) to ensure the board can connect to WiFi
1 parent be0a59e commit e6d7ccb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/FlipperHTTP.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ bool FlipperHTTP::connectToWifi()
3636

3737
WiFi.disconnect(true); // Ensure WiFi is disconnected before reconnecting
3838
WiFi.begin(loadedSSID, loadedPassword);
39+
#fdef BOARD_ESP32_C3
40+
WiFi.setTxPower(WIFI_POWER_8_5dBm);
41+
#endif
3942

4043
int i = 0;
4144
while (!this->isConnectedToWifi() && i < 20)

0 commit comments

Comments
 (0)