mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
esp_netif: Update documentation on deinitialization of wifi default netif
Closes https://github.com/espressif/esp-idf/issues/6504
This commit is contained in:
parent
890ee19ee4
commit
4051922885
@ -160,7 +160,9 @@ such as softAP and station, are provided in two separate APIs to facilitate simp
|
||||
Please note that these functions return the ``esp_netif`` handle, i.e. a pointer to a network interface object allocated and
|
||||
configured with default settings, which as a consequence, means that:
|
||||
|
||||
* The created object has to be destroyed if a network de-initialization is provided by an application.
|
||||
* The created object has to be destroyed if a network de-initialization is provided by an application. The de-initialization should be performed in the two steps:
|
||||
- :cpp:func:`esp_wifi_clear_default_wifi_driver_and_handlers()` -- To unregister default wifi handlers and detach the created object from the wifi
|
||||
- :cpp:func:`esp_netif_destroy()` -- To destroy the ``esp_netif`` object.
|
||||
* These *default* interfaces must not be created multiple times, unless the created handle is deleted using :cpp:func:`esp_netif_destroy()`.
|
||||
* When using Wifi in ``AP+STA`` mode, both these interfaces has to be created.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user