Pairing method using a sensor output

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
thj_2192231
Level 2
Level 2
First like received First like given

"Just Works" is the default pairing method for the BCM20736S. But is it possible to have a pairing method that is slightly different, waiting for a specific sensor output (connected to the 20736S device) before pairing can be completed ? And in case the expected sensor output is not received, abort the pairing in progress.

Thanks.

0 Likes
1 Solution

Unfortunately stack does not provide a callback into the application when it receives pairing request from the peer.  What you can do is to enable/disable pairing based on your sensor output.  For example if you want to enable pairing only when a button is pushed.  You can register to receive interrupts.  On the application startup and when button is released you will call

void lesmp_setPairingNotPermitted(void)

When button is pushed call

void lesmp_clearPairingNotPermitted(void)

View solution in original post

3 Replies