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
  • No I said nothing of the sort. Every BLE event has a connection handle as you sboulder know from the code you’ve been writing. I said the event structure for the disconnect event only has a reason field.

    At this point you need to sit down and read the documentation properly because you’re just guessing your way through. Read the message sequence charts and look at the event types and corresponding structures until you understand the flow.

Reply
  • No I said nothing of the sort. Every BLE event has a connection handle as you sboulder know from the code you’ve been writing. I said the event structure for the disconnect event only has a reason field.

    At this point you need to sit down and read the documentation properly because you’re just guessing your way through. Read the message sequence charts and look at the event types and corresponding structures until you understand the flow.

Children
No Data
Related