This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

How do I replace an old bonded device when max bonded devices reached?

I am only interested in one max bonded device at the moment so I want to replace the old bond with a new bond. Is there an easy way to do this? I only want to replace the old bond if a new bond is successfully created so a failed bonding attempt will not erase the old bond.

  • Hi Jeff,

    You can call dm_device_delete(p_handle) to delete a central device in the bond+info database where the p_handle is the id of the central device. You can delete the old bond when there is a successful new bond and there is only one slot left.

    However, the question is which central should be the oldest bond. If we simply delete the central that bond the first, it could be the one who connect the last (most recent central connected) or it could be the most frequently.

    So it's up to you to choose and monitor the oldest bond, it could be the one who bond the first, or the one who has the oldest last connection or the one who connect the most seldom, etc.

Related