How to get central's mac address?

Hi.

I'm implementing LESC peripheral device.

  • MCU : nRF52832
  • SDK version : 16.0.0
  • Soft device version : 7.0.1

I'm using one peripheral device and two central device.

After bonded with two central device, I want to delete specific bonded information.

So, I compared peer address in peripheral with connected mac address.  

But, I can't compare because connected mac address encrypted(addr type : 0x02).

When i see the peer_addr in bonded information, the mac address is same with central device's mac address.

So, I thought peripheral can decrypt 6byte mac address of central device when connected.

Is there any way get 6byte mac address when central connected?

Regards,

Youngjun

Related