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

set static passkey between two nrf52840 and nrf52832

nrf52840 is ble central ,nrf52832 is ble peripheral,

nrf52832 is modify finish.

but i do not know how assign ble central .

now i use the example(ble_app_uart_c) to implete my project , please tell me how to modify it to set static passkey

i can not get BLE_GAP_EVT_AUTH_KEY_REQUEST vent!

please help me!

thanks for everyone answers!

Parents Reply
  • Please clarify that you can set a certain passkey (static passkey) when pairing. So that you always have the same 6 digits number when you pair. 

    After you have that, if you want to change the static passkey, as far as i know you just need to call sd_ble_opt_set() with BLE_GAP_OPT_PASSKEY and the new passkey that you want. Similar to what you have in your original post. 

Children
Related