This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Get MAC-Address of connected device

Hi guys,

is it possible to get the mac address of the connected device? Didn't find anything in ble_evt_t .. Thanks!

Edit: Sorry, i found it:

its in the ble_evt_t, iff p_ble_evt->header.evt_id == BLE_GAP_EVT_CONNECTED:

ble_evt_t* p_ble_evt ... ;
ble_gap_addr_t addr = p_ble_evt->evt.gap_evt.params.connected.peer_addr;
Related