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

JUST works example

Hi,

Is there an example in sdk 11 that implemented the pairing and bonding in "just Works" way?

Thanks, Anna

Parents
  • Hi,

    Yes, many of the BLE examples in the SDK uses Just Works with pairing/bonding, e.g. the ble_app_hrs example. As seen here, the Device/Peer Manager is configured as this when using "Just Works bonding":

    sec_param.bond = true;
    sec_param.mitm = false;
    sec_param.lesc = 0;
    sec_param.keypress = 0;
    sec_param.io_caps = BLE_GAP_IO_CAPS_NONE;
    sec_param.oob = false;
    sec_param.min_key_size = 7;
    sec_param.max_key_size = 16;
    sec_param.kdist_own.enc = 1;
    sec_param.kdist_own.id = 1;
    sec_param.kdist_peer.enc = 1;
    sec_param.kdist_peer.id = 1;
    
Reply
  • Hi,

    Yes, many of the BLE examples in the SDK uses Just Works with pairing/bonding, e.g. the ble_app_hrs example. As seen here, the Device/Peer Manager is configured as this when using "Just Works bonding":

    sec_param.bond = true;
    sec_param.mitm = false;
    sec_param.lesc = 0;
    sec_param.keypress = 0;
    sec_param.io_caps = BLE_GAP_IO_CAPS_NONE;
    sec_param.oob = false;
    sec_param.min_key_size = 7;
    sec_param.max_key_size = 16;
    sec_param.kdist_own.enc = 1;
    sec_param.kdist_own.id = 1;
    sec_param.kdist_peer.enc = 1;
    sec_param.kdist_peer.id = 1;
    
Children
No Data
Related