This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF-LAUNCHXL: wifi_doorlock Project: Network : Station mode: Get connected Access Point RSSI value

Part Number: CC3220SF-LAUNCHXL
Other Parts Discussed in Thread: CC3220SF

Hello,

We are testing this code, specifically network part.
We are keeping device in station mode & connecting to some Access point i.e. AP.
We want to know the latest RSSI for this Access point using CC3220SF.

We know the scan procedure, following functions are used.
sl_WlanGetNetworkList : Function scans wifi AP available in air & gives table including RSSI for each AP.

But is there any specific API just to check the RSSI of the single connected AP at any given time ?

if api is not available, is there any method to achieve this ?

  • Hi,

    If you want to know RSSI of current connected AP, you can use this code:

    int current_RSSI = -99;
    SlWlanGetRxStatResponse_t rssiRxStat; if (sl_WlanRxStatGet(&rssiRxStat, 0) == 0) { if (rssiRxStat.AvarageDataCtrlRssi != 0) { current_RSSI = rssiRxStat.AvarageDataCtrlRssi; } } else { // error current_RSSI = -99; }

    (notice! do not call this code fastest than in 5sec interval)

    but if you need to read RSSI from some non connected specific AP, you need to use sl_WlanGetNetworkList API.

    Jan

  • Thanks for the quick response.
    I will check & get back to you.
  • This works for now. Thanks a lot.