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

get rssi in hrs_c

Hi team,

Iam using (\ble_tester\examples\ble_central\ble_app_hrs_c\pca10028) this example.i want to get rssi from the advertising beacon. Iam using this functions sd_ble_gap_scan_start(p_scan_params); sd_ble_gap_rssi_get(conn_handle,p_rssi); can you please tell me clearly how to get rssi and what i need to pass arguments from above example.

  • Hi,

    If you want to get the RSSI from an advertising beacon, you can read it directly from the advertisement report:

    static void on_ble_evt(ble_evt_t * p_ble_evt)
    {	.
    	.
            case BLE_GAP_EVT_ADV_REPORT:
            {
    		.
    		.
                NRF_LOG_INFO("RSSI: %d\n",p_gap_evt->params.adv_report.rssi);
    

    The sd_ble_gap_rssi_*() functions are only used to get the RSSI when you are in a connection.

Related