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

Bonding error 132 with HID example.

Hello,

I am trying to add bonding functionality with a passkey to  HID device, and use for this  ble_app_gls_pca10040_s132 example as basic project.

But it  don`t want to connect as primary  example. It no asking a passkey from  phone. Just appeared for a second.

    sec_param.bond           = SEC_PARAM_BOND; //1
    sec_param.mitm           = SEC_PARAM_MITM;//1
    sec_param.lesc           = SEC_PARAM_LESC;//1
    sec_param.keypress       = SEC_PARAM_KEYPRESS; //0
    sec_param.io_caps        = SEC_PARAM_IO_CAPABILITIES;//BLE_GAP_IO_CAPS_DISPLAY_ONLY
    sec_param.oob            = SEC_PARAM_OOB;
    sec_param.min_key_size   = SEC_PARAM_MIN_KEY_SIZE;
    sec_param.max_key_size   = SEC_PARAM_MAX_KEY_SIZE;
    sec_param.kdist_own.enc  = 1;
    sec_param.kdist_own.id   = 1;
    sec_param.kdist_peer.enc = 1;
    sec_param.kdist_peer.id  = 1;

Related