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

sd_ble_gap_rssi_start usage.

Hello,

I am redoing some experiments with 2 pca10001 and the ble_hrs example (with s110, s120) ! What I would like to do is that the s120 side displays the power received from the s110 part. I have used the sd_ble_gap_rssi_start() function.

In conn_mngr.c:

void conn_mngr_ble_evt_handler(ble_evt_t * p_ble_evt)
{
   ...
    switch (p_ble_evt->header.evt_id)
    {
        case BLE_GAP_EVT_CONNECTED:
        ...
                    m_cnxn_inst_table[index].cnxn_handle = p_ble_evt->evt.gap_evt.conn_handle;

                    res1 = sd_ble_gap_rssi_start(p_ble_evt->evt.gap_evt.conn_handle);
                    ...

}

When I run this code, I have:

[APPL]: Scan started
[CM]: Adv Report contains 16bit UUID, RSSI -51
[CM]: Initiating connection
[APPL]: Scan stopped

[APPL]:[98 B2 49 81 75 C6]: Connection Requested
[APPL]: ASSERT: src\host_hci.c, 125, error -559038737

Do you have any ideas ?

Thanks,

Olivier

Parents Reply Children
No Data
Related