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

nRF Connect Android app, test XML tag: unbond

This is a question for the developers of the nRF Connect Android app, or anyone else who might have the details.

The app has a really useful test hardness in it now that lets you write functional BLE tests as XML and run them via adb from a host machine. One of the tags in the XML dialect for the test definitions is "unbond". What does this do, exactly?

If it destroys the bond on the Android app (central) side, how does it do that? There's no API for that in the Android BLE stack, that I can find.

If it destroys the bond on the nRF5x (peripheral, in my case) side, how does it do that? I need that in my app but have done it in a very manual way, adding a custom characteristic that, when written to, drops the connection and then deletes bonds from the peer manager. Is there a better way.

If it destroys one but not the other, does that put me in a "half bonded" state, where one side has a key that no longer works?

Parents Reply Children
Related