This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

softdevicee s120 rssi problem

Hi everyone

now i used softdevice s120 scan and connect two s110 device and i used sd_ble_gap_rssi_start() when connect event , then get the rssi in BLE_GAP_EVT_RSSI_CHANGED because i connect two s110 device so i get two rssi value but how can i know which rssi value is first device and which is second device?

thanks

Parents
  • When you first connect to your two devices, you will get assigned connection handles in the BLE_GAP_EVT_CONNECTED events. These connection handles will appear in other events at a later point to show you what device the event belongs to. When you receive an RSSI_CHANGED event, you have to look up the conn_handle field as mentioned above, then use that to decide which entry in the table to use.

Reply
  • When you first connect to your two devices, you will get assigned connection handles in the BLE_GAP_EVT_CONNECTED events. These connection handles will appear in other events at a later point to show you what device the event belongs to. When you receive an RSSI_CHANGED event, you have to look up the conn_handle field as mentioned above, then use that to decide which entry in the table to use.

Children
No Data
Related