Function esp_idf_hal::sys::esp_wifi_scan_get_ap_num
source ยท pub unsafe extern "C" fn esp_wifi_scan_get_ap_num(
number: *mut u16,
) -> i32
Expand description
@brief Get number of APs found in last scan
@param[out] number store number of APs found in last scan
@attention This API can only be called when the scan is completed, otherwise it may get wrong value.
@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_INVALID_ARG: invalid argument