This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to read RSSI value on nrf_application or putty terminal

Hi,

I need to print the RSSI value to the nrf app or putty terminal to check the RSSI value.

I have gone the structures "ble_gap" file to get the RSSI value and calling it in the main function.

After calling it into the main and checking it into the putty terminal it show the fixed value it never changes.

So I need guidance for the same to develop my code ...

Thanks

Parents Reply
  • Hi Awneil, 

    I have followed this link for getting the RSSI value.

    I have followed the structure as they have used for getting the RSSI value

    "p_ble_evt->evt.gap_evt.params.scan_req_report.rssi not p_ble_evt->evt.gap_evt.params.adv_report.rssi"

    I have placed above statement in my main just after "init" functions.

    then in for(;;) body I have written this "rssi = p_ble_evt->evt.gap_evt.params.adv_report.rssi;" and get it via NUS services on mobile app. But it shows zero value.

    I am not getting it is so, If I am going wrong then please guide me and correct for the wrong ...

    Thanks

Children
Related