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

How can the central scan and print "device name"? Specifically in the example of ble_app_uart_c?

Hi,

The example is currently printing the device address

on_adv_report(ble_gap_evt_adv_report_t const * p_adv_report)
{
...
NRF_LOG_INFO("Connecting to target %02x%02x%02x%02x%02x%02x",
p_adv_report->peer_addr.addr[0],
p_adv_report->peer_addr.addr[1],
p_adv_report->peer_addr.addr[2],
p_adv_report->peer_addr.addr[3],
p_adv_report->peer_addr.addr[4],
p_adv_report->peer_addr.addr[5]

Is it possible to print also the device name? For example the one that is advertised by the ble_app_uart peripheral example?

Thanks

Avi