I want to read the device id of the Central.How can i do it? use PCA10001\06 S110\experimental\ble_app_uart Softdevice 6.0.0
I want to read the device id of the Central.How can i do it? use PCA10001\06 S110\experimental\ble_app_uart Softdevice 6.0.0
if you just want to read it from the device registers directly devzone.nordicsemi.com/.../
void on_ble_evt(ble_evt_t * p_ble_evt)
{
ble_gap_addr_t peer_addr;
switch (p_ble_evt->header.evt_id)
{
case BLE_GAP_EVT_CONNECTED:
m_conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
peer_addr=p_ble_evt->evt.gap_evt.params.connected.peer_addr;
break;
}
}
Dear Aryan, i've found how to do it. but thank you all the same.