After a successful LESC bonding, the address given by p_ble_evt->evt.gap_evt.params.connected.peer_addr in a BLE_GAP_EVT_CONNECTED event is
a "identity address" as expected.
However, currently I need to disconnect and reconnect to get that identity address from my peer (which is in Central role).
I would like to get the identity address right after a successful bonding, which yields a PM_EVT_CONN_SEC_SUCCEEDED event.
I tried im_ble_addr_get(..) from within that event handler, but that wouldn't return the identity address but the same random address
I get before bonding in BLE_GAP_EVT_CONNECTED.
Is there a way to either resolve the identity address from random address (i guess it is a resolvable one) or getting the identity address
somehow right after bonding, ideally before or within the PM_EVT_CONN_SEC_SUCCEEDED event?
Thanks for your help
ps.: I'm using SDK 15.3 on nrf 52832 with Softdevice S132 6.1.1, my remote peer is a recent Android 8.0 device running as Central, initiating the bonding procedure.