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

How can see my peripheral's device name on the Terminal with serial com?

I use ble_app_uart_c. 

I have  a central(nRF52DK). I have a peripheral(nRF52DK). When i run my code, I would like to see my peripheral's name and it's UUID on the terminal with serial comm. How can i do it?

Parents Reply
  • Hi,

    You get the full advertising data when handling the BLE_GAP_EVT_ADV_REPORT event. So you you can parse it manually or use ble_advdata_search() to get advertised names or UUIDs.

    If you want a higher level module you can use the scan module, which will allow you to filter on certain parameters, so that you say only want advertisements with a specific name and a specific UUID. If you refer to the ble_app_uart_c you can see tha tit filters on the NUS UUID. If you instead refer to ble_app_hrs_c you can see more filters being used.

Children
No Data
Related