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

Event detection for SCAN_REQ

Hello. I'm sorry for my bad English.
I'm currently working on a development using nRF52840 based on ble_app_blinky, which is an example of s140 and peripheral. So, I want to receive SCAN_REQ packet as an event from the demand of application. (I don't change anything about SCAN_REF).
I have consulted other questions posted in the past and the API reference, but I don't understand it.
(1) Can I receive SCAN_REQ as an event in the first place?
(2) If it is possible, please tell me the specific code, and it would be better if I can check it by outputting to NRF_LOG.

Best regards.

Parents Reply Children
  • Hello again, noboru

    noboru said:
    I just needed to enable scan request notifications.

    My apologies - I should of course also have mentioned that you also need to make sure that scan_req_notification is set during the initialization of the advertisement.

    I am happy to hear that you were able to make this work with the BLE_GAP_EVT_SCAN_REQ_REPORT event. Great!

    Please do not hesitate to open another ticket if you should encounter any other issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Related