Skip to content

Commit

Permalink
Merge branch 'feature/add_api_to_get_rssi_for_sta' into 'master'
Browse files Browse the repository at this point in the history
feat(wifi): Add new API to get rssi info after station connected to AP

Closes AUD-4662, WIFI-5066, and TCI-1326

See merge request espressif/esp-idf!24505
  • Loading branch information
jack0c committed Jul 7, 2023
2 parents 0f31b73 + 277f0f4 commit 625f1ba
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 15 additions & 1 deletion components/esp_wifi/include/esp_wifi.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
* SPDX-FileCopyrightText: 2015-2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
Expand Down Expand Up @@ -1364,6 +1364,20 @@ esp_err_t esp_wifi_sta_get_negotiated_phymode(wifi_phy_mode_t *phymode);
*/
esp_err_t esp_wifi_set_dynamic_cs(bool enabled);

/**
* @brief Get the rssi info after station connected to AP
*
* @attention This API should be called after station connected to AP.
*
* @param rssi store the rssi info received from last beacon.
*
* @return
* - ESP_OK: succeed
* - ESP_ERR_INVALID_ARG: invalid argument
* - ESP_FAIL: failed
*/
esp_err_t esp_wifi_sta_get_rssi(int *rssi);

#ifdef __cplusplus
}
#endif
Expand Down

0 comments on commit 625f1ba

Please sign in to comment.