Function esp_idf_sys::esp_wifi_sta_get_ap_info
source · pub unsafe extern "C" fn esp_wifi_sta_get_ap_info(
ap_info: *mut wifi_ap_record_t,
) -> esp_err_t
Expand description
@brief Get information of AP to which the device is associated with
@attention When the obtained country information is empty, it means that the AP does not carry country information
@param ap_info the wifi_ap_record_t to hold AP information sta can get the connected ap’s phy mode info through the struct member phy_11b,phy_11g,phy_11n,phy_lr in the wifi_ap_record_t struct. For example, phy_11b = 1 imply that ap support 802.11b mode
@return
- ESP_OK: succeed
- ESP_ERR_WIFI_CONN: The station interface don’t initialized
- ESP_ERR_WIFI_NOT_CONNECT: The station is in disconnect status