BLE_DM_ProceedSecurity
C
uint16_t BLE_DM_ProceedSecurity(uint16_t connHandle, uint8_t repairing);
Description
Proceed the security process.
Note
For Central role, BLE_DM will call BLE_GAP_EnableEncryption API to initiate encryption procedure if paired information recorded in the PDS for peer connected device. Otherwise BLE_SMP_InitiatePairing API will be called by BLE_DM to start pairing procedure.
For Peripheral role, BLE DM call BLE_SMP_InitiatePairing API to trigger SMP security request. It is up to the remote Central then to initiate pairing or encryption procedure.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] repairing | Whether to force a pairing procedure even if there is an existing pairing record. This argument is only for the Central role. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully build configuration. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | The connHandle is invalid. |