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?
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?
Is the terminal connected to the Central, or the Peripheral?
Have you looked at the "BLE Interactive Command Line Interface" Example?
It scans, and displays the info (including name) of the peripherals it finds ...
Is the terminal connected to the Central, or the Peripheral?
Have you looked at the "BLE Interactive Command Line Interface" Example?
It scans, and displays the info (including name) of the peripherals it finds ...
Is the terminal connected to the Central, or the Peripheral?
Yes, Actually, I see my beacon's returned RSSI value. But I didn't see my beacon's UUID. I need to find it because I must differentiate from other BLE devices.
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.