This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How to get mac address of nearby ble devices?

Hello,

I am using pca10028 and sdk 12.2. I want to scan the nearby ble devices and want to display the mac address using uart. So which code should I refer or which thread should I follow to do this?

Thanks, Shailav

  • Using UART It might not be possible I already tried with UART, it is slow with the scanning process.

    If you want to display information you can use Segger RTT client in your code. from [ BLE_GAP_EVT_ADV_REPORT in on_ble_evt ] you can get the information you want.

    Here, u will get the MAC address of the advertiser,

    p_gap_evt->params.adv_report.peer_addr

Related