Page 1 of 1

About esp-idf wifi config

Posted: Wed Dec 08, 2021 1:58 pm
by cjyoleon
In the wifi softap example, I saw this code:
QQ图片20211208215411.png
QQ图片20211208215411.png (19.47 KiB) Viewed 1918 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 1918 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 1918 times