Implementation of esp_wifi_start().

filipESP
Posts: 49
Joined: Tue Nov 06, 2018 12:42 pm

Implementation of esp_wifi_start().

Postby filipESP » Fri Aug 09, 2019 10:30 am

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"

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

Re: Implementation of esp_wifi_start().

Postby rudi ;-) » Fri Aug 09, 2019 1:39 pm

filipESP wrote:
Fri Aug 09, 2019 10:30 am
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"
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
Screenshot_2019-08-09 espressif esp-idf.png
Screenshot_2019-08-09 espressif esp-idf.png (20.74 KiB) Viewed 236 times
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); 
it is (void) argument and returns esp_err_t

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.
-------------------------------------
問候飛出去的朋友遍全球魯迪

filipESP
Posts: 49
Joined: Tue Nov 06, 2018 12:42 pm

Re: Implementation of esp_wifi_start().

Postby filipESP » Mon Aug 12, 2019 8:08 am

rudi ;-) wrote:
Fri Aug 09, 2019 1:39 pm
filipESP wrote:
Fri Aug 09, 2019 10:30 am

if you ask for bgn ...it is a protocoll mode ...
Thanks.

Who is online

Users browsing this forum: Baidu [Spider] and 20 guests