Setting AP fixed data rate "wifi_phy_rate_t"
Posted: Fri Aug 09, 2019 12:48 am
by xtrmsound
Hello,
I am looking to find a way to set a fixed data rate when the esp is set as a softapi. However, I couldn't find any function in the API, or a code example, that provide an example how on the implement it. I browsed through the IDF API documentation, but I could only find the enum code, but not how to use it.
Any thoughts? Did anyone was able to implement it?
Thanks!
Re: Setting AP fixed data rate "wifi_phy_rate_t"
Posted: Fri Aug 09, 2019 2:06 am
by WiFive
Re: Setting AP fixed data rate "wifi_phy_rate_t"
Posted: Fri Aug 09, 2019 2:11 am
by rudi ;-)
xtrmsound wrote: ↑Fri Aug 09, 2019 12:48 am
Hello,
I am looking to find a way to set a fixed data rate when the esp is set as a softapi. However, I couldn't find any function in the API, or a code example, that provide an example how on the implement it. I browsed through the IDF API documentation, but I could only find the enum code, but not how to use it.
Any thoughts? Did anyone was able to implement it?
Thanks!
Hi
you find details in the
ESP-IDF Programming Doc under
wifi_phy_rate_t
Code examples for Wi-Fi are provided in the
wifi directory of ESP-IDF examples.
Also perhabs you have a look to
these post,
this should help
for your settings.
hope this helps for read in.
best wishes
rudi
edit: WiFive was faster
, did not see the answer
Re: Setting AP fixed data rate "wifi_phy_rate_t"
Posted: Mon Aug 12, 2019 3:16 pm
by xtrmsound
Thank you!
It works!
This is how it complie and runs
Code: Select all
#include "esp_private/wifi.h"
ESP_ERROR_CHECK(esp_wifi_start());
wifi_interface_t ifx = WIFI_IF_AP;
ESP_ERROR_CHECK(esp_wifi_internal_set_fix_rate(ifx, true, WIFI_PHY_RATE_1M_L));