mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-15 19:34:03 +00:00
esp_netif/wifi: Add API to destroy default wifi-netif for sta/ap
Partially addresses https://github.com/espressif/esp-idf/issues/6950
This commit is contained in:
@@ -70,6 +70,9 @@ esp_err_t esp_wifi_clear_default_wifi_driver_and_handlers(void *esp_netif);
|
||||
/**
|
||||
* @brief Creates default WIFI AP. In case of any init error this API aborts.
|
||||
*
|
||||
* @note The API creates esp_netif object with default WiFi access point config,
|
||||
* attaches the netif to wifi and registers default wifi handlers.
|
||||
*
|
||||
* @return pointer to esp-netif instance
|
||||
*/
|
||||
esp_netif_t* esp_netif_create_default_wifi_ap(void);
|
||||
@@ -77,10 +80,23 @@ esp_netif_t* esp_netif_create_default_wifi_ap(void);
|
||||
/**
|
||||
* @brief Creates default WIFI STA. In case of any init error this API aborts.
|
||||
*
|
||||
* @note The API creates esp_netif object with default WiFi station config,
|
||||
* attaches the netif to wifi and registers default wifi handlers.
|
||||
*
|
||||
* @return pointer to esp-netif instance
|
||||
*/
|
||||
esp_netif_t* esp_netif_create_default_wifi_sta(void);
|
||||
|
||||
/**
|
||||
* @brief Destroys default WIFI netif created with esp_netif_create_default_wifi_...() API.
|
||||
*
|
||||
* @param[in] esp_netif object to detach from WiFi and destroy
|
||||
*
|
||||
* @note This API unregisters wifi handlers and detaches the created object from the wifi.
|
||||
* (this function is a no-operation if esp_netif is NULL)
|
||||
*/
|
||||
void esp_netif_destroy_default_wifi(void *esp_netif);
|
||||
|
||||
/**
|
||||
* @brief Creates esp_netif WiFi object based on the custom configuration.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user