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

Using nRF52-DK for BLE Relay

I recently got the nRF52-DK for using as BLE Relay evaluation.

I have downloaded following and installed to run the code

- Segger Embedded Studio (v5.1)

- nRF5_SDK_17.0.2_d674dde

I have build and loaded the "examples\ble_central\ble_app_blinky_c" project, but the App doesn't seems doing much.

Is there an example project which do the following ?  If there is documentation for the example project be even better. 

- Scan for available BLE device on list

- Connect BLE device base on handler

- Discover available services and setup for notification to receive data from device

Parents Reply
  • It could be handled in ble_evt_handler() directly also if you want, but in this case the example include a nrf_ble_scan module, see scan_start()->nrf_ble_scan_start(). You can find that nrf_ble_scan_on_ble_evt() is doing handling of BLE_GAP_EVT_ADV_REPORT.

    You may use the nrf_ble_scan.c as reference on how to start scanning and handle BLE_GAP_EVT_ADV_REPORT to parse the data you are looking for directly if you want to.

    Best regards,
    Kenneth

Children
Related