This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Allow LESC "Just Works" Pairing/Bonding with NRF Connect SDK (Zephyr) after pressing Button

Hi

Is there an example for BLE "Just Works" using the NRF Connect SDK for the peripheral device?

I am using a peripheral device without display and would like to allow pairing / bonding for a short period of time after pressing a button.

Having registered callbacks using bt_conn_auth_cb and setting .passkey_display = NULL and .passkey_confirm = NULL does result in being able to pair and bond, yet I would like to only allow bonding in case a button has been pressed before.

Registering pairing_confirm and calling bt_conn_auth_cancel (in case pairing is not allowd) has not yielded the desired outcome so far and I am wondering if this is at all possible (the above pattern used to work with the nRF5 SDK).

Any advise would be appreciated!

Best
Manuel

Parents
  • Hi Maunel, 
    Please note that our technical support staff is currently understaffed due to summer vacation, and a delayed answer must be expected.


    I have forwarded your question to our BLE team. Will provide an answer as soon as I have one.

    Kind regards,
    Øyvind

Reply
  • Hi Maunel, 
    Please note that our technical support staff is currently understaffed due to summer vacation, and a delayed answer must be expected.


    I have forwarded your question to our BLE team. Will provide an answer as soon as I have one.

    Kind regards,
    Øyvind

Children
No Data
Related