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

ADV_IND mode scan request and response, how to trigger the event BLE_GAP_EVT_SCAN_REQ_REPORT?

hi, nordicer:

two device, a peripheral and a apple phone as central. we want to support scan request and response with ADV_IND mode,  I understand as following:

(1) peripheral advertise data

(2) central receive advertising data, and scan request data

(3) perpheral scan response data

we have 3 problems:

(1) how peripheral support the scan request and response?

(2) how peripheral get the scan request data? BLE_GAP_EVT_SCAN_REQ_REPORT?

(3) can central adjust some payload data ? 

Parents Reply
  • Hi,

    The BLE_GAP_EVT_SCAN_REQ_REPORT is a BLE event similar to BLE_GAP_EVT_CONNECTED, BLE_GAP_EVT_DISCONNECTED, etc., and you can handle it in any BLE event handler by adding a case for it.

    See for instance the function ble_evt_handler() in main.c for the ble_app_hrs example how other BLE events are handled. You can for instance add handling of BLE_GAP_EVT_SCAN_REQ_REPORT events there, similar to handling of the other events.

    Regards,
    Terje

Children
Related