Hi.
Where I can find the implementation of eg. esp_wifi_start() or other wifi function in ESP-IDF?
I need to know what is the 40U in log: "wifi: ... AID=1, bgn, 40U"
Implementation of esp_wifi_start().
Re: Implementation of esp_wifi_start().
hi
you can use the search function in github esp-idf
visit the esp-idf repo
search for esp_wifi_start
and you find example in the wifi header file
press to the line 289 in the search
you find the declare, scroll up to start the descripton
and you find description of "esp_wifi_start()"
Code: Select all
/**
* @brief Start WiFi according to current configuration
* If mode is WIFI_MODE_STA, it create station control block and start station
* If mode is WIFI_MODE_AP, it create soft-AP control block and start soft-AP
* If mode is WIFI_MODE_APSTA, it create soft-AP and station control block and start soft-AP and station
*
* @return
* - ESP_OK: succeed
* - ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
* - ESP_ERR_INVALID_ARG: invalid argument
* - ESP_ERR_NO_MEM: out of memory
* - ESP_ERR_WIFI_CONN: WiFi internal error, station or soft-AP control block wrong
* - ESP_FAIL: other WiFi internal errors
*/
esp_err_t esp_wifi_start(void);
also there is wifi api readme and other info to wifi
..
for a next question in advance:
yes - there is a esp wifi lib
yes few implementation are in the lib and config's are done by simple (config_t's*)
what use the lib for init / start / ect..
to answere the second question outside the posttheme:
-> I need to know what is the 40U in log: "wifi: ... AID=1, bgn, 40U"
this is a ESP_LOG.. Debug Info
example ESP_LOG.. Info, Error.. and so on .. ( *vars..... ) :
"I (13925) wifi: station: xx:xx:xx:xx:xx:xx join, AID=1, bgn, 40U"
Loging info you find here
seraching for AID
searching for bgn
brings more and more infos
i am sure you will found the 40U now
and what is mean / response with it, else bump the question..
..further more search found to relative questions.
hope this helps
have a look to detail infos here before
if you ask for bgn ...it is a protocoll mode ...
...
so long
best wishes
rudi
ps
-> wifi driver theme
-------------------------------------
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
love it, change it or leave it.
-------------------------------------
問候飛出去的朋友遍全球魯迪
Re: Implementation of esp_wifi_start().
Who is online
Users browsing this forum: Baidu [Spider] and 125 guests