What is the standard way of unpairing when one device is disconnected

Viewed 9

I'm implementing a BLE application between a central and up to two peripherals. I saw that the old implementation could not handle that one of the devices unpaired while the other one was disconnected and I just wanted to know if any of you guys had a good way of handling this scenario.

So if they are connected the device that is unpaired will receive a disconnect reason 0x13 which tells it the disconnection is by choice and a unpair is necessary.

But if they are not connected this device will not know and keep doing directed advertisement toward the other device or scan until found.

0 Answers
Related