You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/en/api-reference/network/esp_netif.rst
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -160,7 +160,9 @@ such as softAP and station, are provided in two separate APIs to facilitate simp
160
160
Please note that these functions return the ``esp_netif`` handle, i.e. a pointer to a network interface object allocated and
161
161
configured with default settings, which as a consequence, means that:
162
162
163
-
* The created object has to be destroyed if a network de-initialization is provided by an application.
163
+
* 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:
164
+
- :cpp:func:`esp_wifi_clear_default_wifi_driver_and_handlers()` -- To unregister default wifi handlers and detach the created object from the wifi
165
+
- :cpp:func:`esp_netif_destroy()` -- To destroy the ``esp_netif`` object.
164
166
* These *default* interfaces must not be created multiple times, unless the created handle is deleted using :cpp:func:`esp_netif_destroy()`.
165
167
* When using Wifi in ``AP+STA`` mode, both these interfaces has to be created.
0 commit comments