Hello,
I'm using a central device that lists all nearby peripheral devices by their MAC addresses like so:
static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
...
case BLE_GAP_EVT_ADV_REPORT:
{
const ble_gap_evt_adv_report_t *p_adv = &p_ble_evt->evt.gap_evt.params.adv_report;
DEBUG_BLUETOOTH("RSSI: %d\n", p_adv->rssi);
DEBUG_BLUETOOTH("PHY: 0x%02x%02x%02x%02x\n", p_ble_evt->evt.gap_evt.params.scan_req_report.peer_addr.addr[3],
p_ble_evt->evt.gap_evt.params.scan_req_report.peer_addr.addr[2],
p_ble_evt->evt.gap_evt.params.scan_req_report.peer_addr.addr[1],
p_ble_evt->evt.gap_evt.params.scan_req_report.peer_addr.addr[0]);
}
...
}
but I also want to list the names of the devices as they appear in the nRF Toolbox -> UART.
Is there any struct or variable that holds this information?
Regards,
L. B.