Function esp_idf_svc::hal::sys::esp_wifi_sta_get_rssi

source ยท
pub unsafe extern "C" fn esp_wifi_sta_get_rssi(rssi: *mut i32) -> i32
Expand description

@brief Get the rssi information of AP to which the device is associated with

@attention 1. This API should be called after station connected to AP. @attention 2. Use this API only in WIFI_MODE_STA or WIFI_MODE_APSTA mode.

@param rssi store the rssi info received from last beacon.

@return

  • ESP_OK: succeed
  • ESP_ERR_INVALID_ARG: invalid argument
  • ESP_FAIL: failed