How peripheral can read central device's public address

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

When a central gets to connect my peripheral device, I want to read this central's public address.

   

The goal is to introduce this central address in the peripheral's whitelist with the intention of allowing connection when set policy filter in mode "whitelist conn".

   

Any idea how to obtain central's address once connected ? 

   

Thanks in advance,

   

Asier.

0 Likes
1 Solution
Anonymous
Not applicable

Use CyBle_GapGetPeerBdAddr API

   

Regards,

   

- Madhu Sudhan

View solution in original post

0 Likes
2 Replies
Anonymous
Not applicable

Use CyBle_GapGetPeerBdAddr API

   

Regards,

   

- Madhu Sudhan

0 Likes
PeterSchmuckal
Level 1
Level 1
First reply posted Welcome!

I have this same need - as a Peripheral device I need the Central's bdaddr.  However, the CyBle_GapGetPeerBdAddr API is not compiled into the stack and throws a linking error.  How do I get this function included?

0 Likes