BLE_SMP_Config
C
uint16_t BLE_SMP_Config(BLE_SMP_Config_T * p_config);
Description
Configures SMP pairing parameters.
Note
Man-In-The-Middle (MITM) protection is requested if ioCapability is set to anything other than NoInputNoOutput. Defaults are used if this function is not called:
- ioCapability : BLE_SMP_IO_NOINPUTNOOUTPUT
- oob: false (no Out Of Band (OOB) authentication data)
- authReqFlag : BLE_SMP_OPTION_BONDING | BLE_SMP_OPTION_SECURE_CONNECTION
- scOnly: true (LE secure connection only)
- authPairingRequired : Authenticated Pairing Requirement flag. Set to true to require an authenticated pairing method. If set and the device is in the peripheral role with an unauthenticated pairing method, a pairing failure will be triggered.
Parameters
Parameter | Description |
---|---|
[in] p_config | Pointer to the configuration structure. See BLE_SMP_Config_T. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Pairing parameters configured successfully. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |