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

In standard sdk 17.0.2 is it possible to know which devices did i accidently disconnect?(Interactive command s140) nrf52840

In standard sdk 17.0.2 is it possible to know which devices did i accidently disconnect?(Interactive command s140)

for example

my central is the interactive command app

and the  

Peripheral 

has N  for example lots of light switch

and one of those light switches accidentally disconnected (maybe crashes or smth)

so how can I know which light switch is disconnected 

as in mac address

it only shows

<info> app: CENTRAL: Disconnected, handle: 0, reason: 0x8

without any mac address

Parents
  • Hi

    You should be able to use the connection handle to know what device was connected, and you should be able to detect when it's disconnected. The Connection handle is a unique identifier for everything on one connection. Once you ask the GAP layer to initiate connection you'll get the connection handle with MAC address, device name, etc. 

    Best regards,

    Simon

Reply
  • Hi

    You should be able to use the connection handle to know what device was connected, and you should be able to detect when it's disconnected. The Connection handle is a unique identifier for everything on one connection. Once you ask the GAP layer to initiate connection you'll get the connection handle with MAC address, device name, etc. 

    Best regards,

    Simon

Children
Related