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

How to map a gap event to a physical device?

What unique information can I use to know which physical device disconnected for example? Say I have a MAC address or a name encoded into the advertising packet. Correct me if I'm wrong, but connection handles are created after a connection is established. So how can I map a mac address or name to a connection handle?

Parents
  • of course you know - it was YOU who as central initiated the connection and YOU said whom you want to connect to. Since you can only have one connection procedure going on at the same time, you know when you get the connection it was the one you initiated.

    Apart from that the peer address is in the connection event so you have multiple ways to do this.

Reply
  • of course you know - it was YOU who as central initiated the connection and YOU said whom you want to connect to. Since you can only have one connection procedure going on at the same time, you know when you get the connection it was the one you initiated.

    Apart from that the peer address is in the connection event so you have multiple ways to do this.

Children
No Data
Related