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

Pairing and Bonding Question

Hello,

In my application, a peripheral will be connected to many central devices, and the application includes buttonless dfu service.

It needs pairing (encrypted connection) but no bonding.

nRF52832, SDK12.2.0, s132

The settings in my project are listed as below:

    #define SEC_PARAM_BOND                    0                                            /**< Perform bonding. */
    #define SEC_PARAM_MITM                    0                                            /**< Man In The Middle protection not required. */
    #define SEC_PARAM_LESC                    0                                            /**< LE Secure Connections not enabled. */
    #define SEC_PARAM_KEYPRESS                0                                            /**< Keypress notifications not enabled. */
    #define SEC_PARAM_IO_CAPABILITIES         BLE_GAP_IO_CAPS_NONE                         /**< No I/O capabilities. */
    #define SEC_PARAM_OOB                     0                                            /**< Out Of Band data not available. */
    #define SEC_PARAM_MIN_KEY_SIZE            7                                            /**< Minimum encryption key size. */
    #define SEC_PARAM_MAX_KEY_SIZE            16                                           /**< Maximum encryption key size. */

Got the error code "NRF_ERROR_INVALID_PARAM" from "pm_sec_params_set()". Could you give me a hint to solve this problem? Thanks.

Sara

Related