Tx Power Set not working

ESP32_kid
Posts: 16
Joined: Tue Oct 28, 2025 10:02 pm

Tx Power Set not working

Postby ESP32_kid » Tue Oct 28, 2025 10:29 pm

ESP32-C3-Zero

I used in Arduino IDE
esp_netif_init();
esp_wifi_set_max_tx_power(8);

I don't see power change on my Rx device.

Does this setting work on the C3?

lbernstone
Posts: 1132
Joined: Mon Jul 22, 2019 3:20 pm

Re: Tx Power Set not working

Postby lbernstone » Wed Oct 29, 2025 1:16 am

The doco says that you need to call esp_wifi_init before setting the power level. If you are using the WiFi library, WiFi.mode(WIFI_STA) will set the necessary state.

ESP32_kid
Posts: 16
Joined: Tue Oct 28, 2025 10:02 pm

Re: Tx Power Set not working

Postby ESP32_kid » Wed Oct 29, 2025 3:12 am

Wow, I somehow used the wrong init, i used netif.
Do you have a reference to the docs page?

I do also use WiFi.h, so are you saying WiFi.mode() initializes the wifi? I thought it was WiFi.softAP() ?

Anyways, I will adjust my code and try again. Thanks.

Edit: Yep, I moved the set power line after wifi softAP line, now I see power diff.

Who is online

Users browsing this forum: Bytespider and 3 guests