]> granicus.if.org Git - esp-idf/commitdiff
esp32: add esp_wifi_sta_get_ap_info
authorLiu Zhi Fu <liuzhifu@espressif.com>
Thu, 27 Oct 2016 02:42:01 +0000 (10:42 +0800)
committerLiu Zhi Fu <liuzhifu@espressif.com>
Thu, 27 Oct 2016 02:42:01 +0000 (10:42 +0800)
The customers need to get information about AP that associated with ESP32 station,
these information includes RSSI, channel number etc, so add this new API

components/esp32/include/esp_wifi.h
components/esp32/lib

index 7cfff6ee019ae1c3c118c574909324b1a2b56b29..80ced5dc610269073350e4427972f4e051df398d 100644 (file)
@@ -242,13 +242,24 @@ esp_err_t esp_wifi_scan_get_ap_num(uint16_t *number);
   *
   * @param     uint16_t *number : as input param, it stores max AP number ap_records can hold, as output param, it store
                                   the actual AP number this API returns
-  * @param     wifi_ap_record_t *ap_records: an wifi_ap_record_t array to hold the found APs
+  * @param     wifi_ap_record_t *ap_records: wifi_ap_record_t array to hold the found APs
   *
   * @return    ESP_OK : succeed
   * @return    others : fail
   */
 esp_err_t esp_wifi_scan_get_ap_records(uint16_t *number, wifi_ap_record_t *ap_records);
 
+
+/**
+  * @brief     Get information of AP associated with ESP32 station
+  *
+  * @param     wifi_ap_record_t *ap_info: the wifi_ap_record_t to hold station assocated AP
+  *
+  * @return    ESP_OK : succeed
+  * @return    others : fail
+  */
+esp_err_t esp_wifi_sta_get_ap_info(wifi_ap_record_t *ap_info);
+
 /**
   * @brief     Set current power save type
   *
index b9561aa5db15443d11f8bb5aefdfc5da540d8f2d..774f6073dee1b01da5f420c5d7513b3d88cd5729 160000 (submodule)
@@ -1 +1 @@
-Subproject commit b9561aa5db15443d11f8bb5aefdfc5da540d8f2d
+Subproject commit 774f6073dee1b01da5f420c5d7513b3d88cd5729