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

What is the correct way to set device pairable / not pairable?

I'm building something based on ble_app_gls. However, I only want it to be pairable when I say so (user presses a button to put it into that mode). Is there a "correct" way to do this? Should I intercept the pairing request event and reject it if we're not supposed to be pairable, or does there exist something like in BT Classic where you can be connectable but not discoverable for pairing purposes?

Related