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!
Setting AP fixed data rate "wifi_phy_rate_t"
Re: Setting AP fixed data rate "wifi_phy_rate_t"
Hixtrmsound wrote: ↑Fri Aug 09, 2019 12:48 amHello,
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!
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.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: Setting AP fixed data rate "wifi_phy_rate_t"
Thank you!
It works!
This is how it complie and runs
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: Majestic-12 [Bot] and 82 guests