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

static passkey demo code for S110 stackV8.0/SDK10 of nrf51822

Dear all

I want to add the static pin to my project(s110 stackV8.0, based on SDK10), add the follow code to gap_params_init:

uint8_t passkey[] = STATIC_PASSKEY;
m_static_pin_option.gap_opt.passkey.p_passkey = passkey;
err_code =  sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &m_static_pin_option);

init the device manager. But it seems not work as phone can connect it successfully without type in passkey. Any link or demo code can I refer to ?

Regards Jenson

Parents
  • First - please use the code buttons to format your message so it can be read - I just fixed it for you, you get a preview at the bottom of the screen so you can edit until it's legible.

    Secondly - do you have any permissions on any of the characteristics? Anything can connect to you without requiring a passkey - it's when you try to access characteristics which require pairing/bonding that the bonding process will occur.

Reply
  • First - please use the code buttons to format your message so it can be read - I just fixed it for you, you get a preview at the bottom of the screen so you can edit until it's legible.

    Secondly - do you have any permissions on any of the characteristics? Anything can connect to you without requiring a passkey - it's when you try to access characteristics which require pairing/bonding that the bonding process will occur.

Children
No Data
Related