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?
Tx Power Set not working
-
lbernstone
- Posts: 1132
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Tx Power Set not working
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
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.
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: Qwantbot and 2 guests