A brief question about BLE handles

Hi, 

 In  BLE connect process, we can get a hanlde from the softdevice  .Are these handles managed by the softdevice,or do we have to deal with the handle by ourselves?

Here is another question:

when a master device has established connection with three slave devices . Those three devices will get their own connect handle from 0 to 2 one by one.What if device 1 is disconnected

with some reason and then recconnected by the master device ?What will the connect handle be ? 1 or 3? 

  • Hi Noxstella,

    when a master device has established connection with three slave devices . Those three devices will get their own connect handle from 0 to 2 one by one.What if device 1 is disconnected

    with some reason and then recconnected by the master device ?What will the connect handle be ? 1 or 3? 

    In this hypothetical scenario, you cannot be 100% sure whether the handle is 1 or 3.

    Suppose there are only three devices, in most cases, the handle will be recycled. However, in corner cases, the SoftDevice might not have had enough time to recycle the handle before the device is reconnected. For an example, see  BLE connection handle value scope . 

    If there are more than just the three devices, then when one device disconnected, a fourth device might connect and get the recycled connection handle.

    Hieu

Related