About esp-idf wifi config

cjyoleon
Posts: 1
Joined: Wed Dec 08, 2021 1:32 pm

About esp-idf wifi config

Postby cjyoleon » Wed Dec 08, 2021 1:58 pm

In the wifi softap example, I saw this code:
QQ图片20211208215411.png
QQ图片20211208215411.png (19.47 KiB) Viewed 1777 times
according to the esp-idf documentation https://docs.espressif.com/projects/esp ... i_config_t,
the function esp_err_tesp_wifi_set_config "creates esp_netif object with default WiFi access point config, attaches the netif to wifi and registers default wifi handlers."
QQ图片20211208214821.png
QQ图片20211208214821.png (22.66 KiB) Viewed 1777 times
The question is: if this api creates the netif with the default config, when it is called, is it neccesary to call the next two lines?
QQ图片20211208214813.png
QQ图片20211208214813.png (5.11 KiB) Viewed 1777 times

Who is online

Users browsing this forum: and3rson, Baidu [Spider] and 132 guests