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

Smart Bluetooth Forum Discussions

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
MichaelF_56
Moderator
Moderator
Moderator
250 sign-ins 25 comments on blog 10 comments on blog

We will talk to the developers to determine if Passkey pairing can be delayed until a certain sensor value is verified, then completed once confirmed.

0 Likes

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)

Thanks, works great.

0 Likes