When a Notify comes in to my Central, I'd like to know the RSSI associated with that message. Is that data stored in the event somewhere?
When a Notify comes in to my Central, I'd like to know the RSSI associated with that message. Is that data stored in the event somewhere?
Enable RSSI with sd_ble_gap_rssi_start. A new event is reported whenever the RSSI value changes, until sd_ble_gap_rssi_stop is called. See BLE_GAP_EVT_RSSI_CHANGED.
How do I know which peripheral is associated with the RSSI_CHANGED event? It will be quite different for each peripheral, of course.
There is a connection handle in ble_gap_evt_t. So you should check: ble_gap_evt_t.conn_handle and ble_gap_evt_t->params.rssi. These are part of the gap_evt of ble_evt_t.