Function esp_idf_sys::esp_wifi_clear_ap_list
source · pub unsafe extern "C" fn esp_wifi_clear_ap_list() -> esp_err_t
Expand description
@brief Clear AP list found in last scan
@attention This API will free all memory occupied by scanned AP list. When the obtained AP list fails, AP records must be cleared,otherwise it may cause memory leakage.
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
- ESP_ERR_WIFI_NOT_STARTED: WiFi is not started by esp_wifi_start
- ESP_ERR_WIFI_MODE: WiFi mode is wrong
- ESP_ERR_INVALID_ARG: It doesn’t normally happen, the function called inside the API was passed invalid argument, user should check if the wifi related config is correct