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

ParameterDescription
[in] connHandleConnection handle associated with this connection.
[in] p_ltkPointer to the 128-bit Long Term Key (LTK) used for encryption.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully issues a reply to the encryption information request event.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_INVALID_PARAThe parameters provided are invalid.
MBA_RES_COMMAND_DISALLOWEDCommand disallowed due to a conflicting operation or state.