BLE_GAP_EncInfoReqReply
C
uint16_t BLE_GAP_EncInfoReqReply(uint16_t connHandle, uint8_t *p_ltk);
Description
Responds to an LE encryption information request event.
Note
This API should only be called in response to a BLE_GAP_EVT_ENC_INFO_REQUEST event and only if the device is in the peripheral role.
Events generated
BLE_GAP_EVT_ENCRYPT_STATUS is generated when the encryption status is updated.
BLE_GAP_EVT_DISCONNECTED is generated if the provided encryption information is incorrect and leads to a disconnection.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] p_ltk | Pointer to the 128-bit Long Term Key (LTK) used for encryption. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully issues a reply to the encryption information request event. |
MBA_RES_OOM | Internal memory allocation failure occurred. |
MBA_RES_INVALID_PARA | The parameters provided are invalid. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed due to a conflicting operation or state. |