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
  • Hi Peter,

    This is a GAP type event (ble_gap_evt_rssi_changed_t), so the connection handle should be available in the evt->gap_evt.conn_handle struct. The connection handle should correspond to the connection handle you got in the initial CONNECTED event.

    Is this not the case for you?

  • Hi Myhre thanks for your reply . now i used rssi = p_ble_evt->evt.gap_evt.params.rssi_changed.rssi; to get two connected device rssi value in BLE_GAP_EVT_RSSI_CHANGED CASE and it return two rssi value for me ,but i don't know the rssi is first device's or second device's,i want to do is device[0] = rssi[0] ,device[1] = rssi[1] ,how can i doing that
    thanks

Reply
  • Hi Myhre thanks for your reply . now i used rssi = p_ble_evt->evt.gap_evt.params.rssi_changed.rssi; to get two connected device rssi value in BLE_GAP_EVT_RSSI_CHANGED CASE and it return two rssi value for me ,but i don't know the rssi is first device's or second device's,i want to do is device[0] = rssi[0] ,device[1] = rssi[1] ,how can i doing that
    thanks

Children
No Data
Related