This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to get peer BDADDR from peer manager

Hello.
Is it possible for a central device to retrieve the BDADDR( 6 byte array data ) of a past peripheral device by using the peer manager?
("past peripheral device" refers to a device that Central has established a connection to once and no longer exists.)

I used the following steps to get the BDADDR while looking at the peer manager's documentation, but I don't know the correct steps.

1. Use pm_next_peer_id_get() to get the peer_id.
2. Use pm_whitelist_set() to set the whitelist.
3. use pm_whitelist_get() to get the BDADDR.

I felt uncomfortable with this procedure and wanted to get the BDADDR as well as the peer id from the peer manager...is it necessary to create a whitelist?

Thank you very much.

Parents Reply Children
Related