esp_wifi.h questions
Posted: Mon Aug 27, 2018 12:13 pm
Hi all,
I have some questions regarding the functions inside the "esp_wifi.h" file.
1)
Where can I locate the source code these functions are declared in? In other words: where can I find the function bodies? I want to see what goes on inside these functions. But I cannot find them inside the IDF. Maybe I look in the wrong direction.
What I am looking for is how for instance the function "esp_wifi_connect()" is detecting that the wifi is not yet started, so it returns an "ESP_ERR_WIFI_NOT_STARTED" return code. I'd like to know these things.
2) Can someone explain to me what the following output means?
I (21958) wifi: n:6 0, o:6 0, ap:255 255, sta:6 0, prof:1
I (21958) wifi: state: init -> auth (b0)
I (21968) wifi: state: auth -> assoc (0)
I (21998) wifi: state: assoc -> run (10)
I (22528) wifi: connected with NOKIA Lumia 920_9610, channel 6
I (22528) wifi: pm start, type: 1
a) what is "n", "o" and "prof" mean?
b) what does the line "state: init -> auth (b0)" indicate?
c) what does the line "state: assoc -> run (10)" indicate? What does 10 do?
d) where does "pm" stand for in the line "wifi: pm start, type: 1"?
I know these may look like silly questions, but I am trying to understand the whole WiFi library, so I can debug my issues better.
All this I cannot find in the documentation.
I have some questions regarding the functions inside the "esp_wifi.h" file.
1)
Where can I locate the source code these functions are declared in? In other words: where can I find the function bodies? I want to see what goes on inside these functions. But I cannot find them inside the IDF. Maybe I look in the wrong direction.
What I am looking for is how for instance the function "esp_wifi_connect()" is detecting that the wifi is not yet started, so it returns an "ESP_ERR_WIFI_NOT_STARTED" return code. I'd like to know these things.
2) Can someone explain to me what the following output means?
I (21958) wifi: n:6 0, o:6 0, ap:255 255, sta:6 0, prof:1
I (21958) wifi: state: init -> auth (b0)
I (21968) wifi: state: auth -> assoc (0)
I (21998) wifi: state: assoc -> run (10)
I (22528) wifi: connected with NOKIA Lumia 920_9610, channel 6
I (22528) wifi: pm start, type: 1
a) what is "n", "o" and "prof" mean?
b) what does the line "state: init -> auth (b0)" indicate?
c) what does the line "state: assoc -> run (10)" indicate? What does 10 do?
d) where does "pm" stand for in the line "wifi: pm start, type: 1"?
I know these may look like silly questions, but I am trying to understand the whole WiFi library, so I can debug my issues better.
All this I cannot find in the documentation.