Setting AP fixed data rate "wifi_phy_rate_t"

xtrmsound
Posts: 5
Joined: Fri Aug 09, 2019 12:39 am

Setting AP fixed data rate "wifi_phy_rate_t"

Postby xtrmsound » 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!


User avatar
rudi ;-)
Posts: 1698
Joined: Fri Nov 13, 2015 3:25 pm

Re: Setting AP fixed data rate "wifi_phy_rate_t"

Postby rudi ;-) » Fri Aug 09, 2019 2:11 am

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
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪

xtrmsound
Posts: 5
Joined: Fri Aug 09, 2019 12:39 am

Re: Setting AP fixed data rate "wifi_phy_rate_t"

Postby xtrmsound » Mon Aug 12, 2019 3:16 pm

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));



Who is online

Users browsing this forum: JVKran and 81 guests