1.2.2.1.4.4.3 BLE_SMP_Config
C
uint16_t BLE_SMP_Config(BLE_SMP_Config_T * p_config);
Description
Configure SMP pairing parameters.
Note
MITM (man-in-the-middle protection) is requested if ioCapability is other than NoInputNoOutput. If this API is not called then following are the defaults:
ioCapability : BLE_SMP_IO_NOINPUTNOOUTPUT
oob: Set false to indicate device does not have OOB authentication data.
authReqFlag : BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_SECURE_CONNECTION
scOnly: Set true to enable LE secure connection only.
Parameters
Parameter | Description |
---|---|
[in] p_config | Pointer to the BLE_SMP_Config_T structure buffer. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully configure SMP pairing parameters. |
MBA_RES_INVALID_PARA | The configured parameter(s) is/are invalid. |