Tx Power Set not working
Posted: Tue Oct 28, 2025 10:29 pm
by ESP32_kid
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?
Re: Tx Power Set not working
Posted: Wed Oct 29, 2025 1:16 am
by lbernstone
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.
Re: Tx Power Set not working
Posted: Wed Oct 29, 2025 3:12 am
by ESP32_kid
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.