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

Example using OOB?

I'm using SDK 7.1, PCA10028 and SD310 v2.0.1

Is there a project that implements OOB protection for bonding?

My device has no display, and a single button for input. I want to prevent bonding until the button is pressed.

I believe this fits the definition of OOB, but I can't find any examples of how to implement it with the device manager.

Thanks

  • Hi, sorry for taking so long to reply. It seems to me that a simple solution would be to wait in the code for the button-press before proceeding to the bonding procedure. If the button is not pressed within some time-limit for example, the device should disconnect and abandon the bonding procedure.

    You could look at the ble_app_multilink example to get some idea of how to do this. For example, before bonding you could flash a LED, wait for the button, and if it is pressed, continue. If not, abort.

Related