Function esp_idf_svc::hal::sys::esp_wifi_ap_get_sta_aid
source · pub unsafe extern "C" fn esp_wifi_ap_get_sta_aid(
mac: *const u8,
aid: *mut u16,
) -> i32
Expand description
@brief Get AID of STA connected with soft-AP
@param mac STA’s mac address @param[out] aid Store the AID corresponding to STA mac
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_NOT_INIT: WiFi is not initialized by esp_wifi_init
- ESP_ERR_INVALID_ARG: invalid argument
- ESP_ERR_NOT_FOUND: Requested resource not found
- ESP_ERR_WIFI_MODE: WiFi mode is wrong
- ESP_ERR_WIFI_CONN: WiFi internal error, the station/soft-AP control block is invalid