How to calculate RSSI of Received Packets
Posted: Wed Feb 15, 2017 6:35 am
Hi,
I have created one sample example in which one ESP32 based board is started into AP mode while another board is started into STA mode and transfered some packets between each other.
I want to calculate RSSI of total received packets on receiver side and for that I have checked into SDK but not found proper API for that. I just found following code to get AP RSSI.
So, I think above code will just give Signal Strength of AP mode device with which device will be connected. So, Is there any way or any APIs to decode received packets into MAC Layer from Application to check RSSI and LQI of each packets received?
Let me correct if I am wrong.
I have created one sample example in which one ESP32 based board is started into AP mode while another board is started into STA mode and transfered some packets between each other.
I want to calculate RSSI of total received packets on receiver side and for that I have checked into SDK but not found proper API for that. I just found following code to get AP RSSI.
Code: Select all
wifi_ap_record_t wifidata;
if (esp_wifi_sta_get_ap_info(&wifidata)==0)
{
printf("************** rssi:%d\r\n", wifidata.rssi);
}
Let me correct if I am wrong.