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

Capture the event of a sent scan response

Hi,

I am using the nRF52 Dev Kit.

Is there a way I can get a notification after a "scan response" has been sent?

For example - the first radio_active after a BLE_GAP_EVT_SCAN_REQ_REPORT ?

ble_radio_notification_evt_handler_t (bool radio_active)

Best regards,

  • I use

    static void on_ble_evt(ble_evt_t * p_ble_evt)
    {
        switch (p_ble_evt->header.evt_id)
        {
    
    		case BLE_GAP_EVT_SCAN_REQ_REPORT:
        }
    }
    

    In my code for nRF51 running s110 -- may be the same for nRF52. Make sure to enable the event

    ble_opt_t ble_options;
    ble_options.gap_opt.scan_req_report.enable = 1;
    err_code = sd_ble_opt_set(BLE_GAP_OPT_SCAN_REQ_REPORT, &ble_options);
    APP_ERROR_CHECK(err_code);
    
Related