I'm using ble_app_uart_c example with NRF52840.
And i want to read the beacon device id( 8 byte ) at Central(nrf52840).
The ADDR value could be verified through the questions here.
Below is an example code i used.
it work in case BLE_GAP_EVT_ADV_REPORT:
const ble_gap_evt_adv_report_t * p_adv_report = &p_gap_evt->params.adv_report;
const ble_gap_addr_t peer_addr = p_adv_report->peer_addr;
const uint16_t deviceID = p_adv_report->data_id;
But the result " printf("ID %08x\r\n",deviceID); " is " ID 00000000 "
Can someone help me read the ID? thank you..