Closed 0xkelvin closed 4 years ago
/*@brief Function for handling BLE events.
@param[in] p_context Unused. / static void ble_evt_handler(ble_evt_t const p_ble_evt, void * p_context) {
switch (p_ble_evt->header.evt_id) { case BLE_GAP_EVT_ADV_REPORT: { // if(m_scan.scan_buffer.p_data[0] == 0x02) { NRF_LOG_RAW_HEXDUMP_INFO (m_scan.scan_buffer.p_data, m_scan.scan_buffer.len); NRF_LOG_RAW_INFO( " --------MAC------\r\n"); NRF_LOG_RAW_HEXDUMP_INFO(p_ble_evt->evt.gap_evt.params.adv_report.peer_addr.addr,BLE_GAP_ADDR_LEN); NRF_LOG_RAW_INFO ("----------------------------------\r\n"); } }
default:
break;
} }
Hi, how can get the mac address from scan result ? great thanks. it would be great if hear from you soon.