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

sd_ble_gap_rssi_get channel

I want to get the RSSI of a connected device. The sequence will be as follows:

int8_t *p_rssi;

uint8_t *p_ch_index;

sd_ble_gap_rssi_start (m_conn_handle, BLE_GAP_RSSI_THRESHOLD_INVALID, 0x00);

sd_ble_gap_rssi_get(m_conn_handle, p_rssi, p_ch_index);

sd_ble_gap_rssi_stop (m_conn_handle);

The device is configured as a hid device connected to a smart phone.

Nordic Infocenter says p_ch_index is the pointer to the location where Channel Index for the RSSI measurement shall be stored.

I have only one connected phone. I wonder what the Channel Index has to do with this?

Besides, when I tried to get the rssi by implementing this function in a 2 second timer  I can no longer pair the device using the example ble_app_hid_mouse.

Related