Function esp_idf_sys::esp_wifi_scan_get_ap_records

source ยท
pub unsafe extern "C" fn esp_wifi_scan_get_ap_records(
    number: *mut u16,
    ap_records: *mut wifi_ap_record_t,
) -> esp_err_t
Expand description

@brief Get AP list found in last scan.

@attention This API will free all memory occupied by scanned AP list.

@param[inout] number As input param, it stores max AP number ap_records can hold. As output param, it receives the actual AP number this API returns. @param ap_records wifi_ap_record_t array to hold the found APs

@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
  • ESP_ERR_NO_MEM: out of memory