1.2.2.1.1.4.14 BLE_GAP_EncInfoReqReply
C
uint16_t BLE_GAP_EncInfoReqReply(uint16_t connHandle, uint8_t *p_ltk);
Description
Reply to an LE encrypt information request event. This API is called to reply BLE_GAP_EVT_ENC_INFO_REQUEST event.
Note
This API shall be called only if device is peripheral role.
Events generated
BLE_GAP_EVT_ENCRYPT_STATUS Generated when encrypted status update.
BLE_GAP_EVT_DISCONNECTED Generated when encryption information is wrong.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle associated with this connection. |
[in] p_ltk | Pointer to 128 bit long term key (ltk). |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully issue a reply of LE encrypt information request event. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_INVALID_PARA | Invalid parameters. |
MBA_RES_COMMAND_DISALLOWED | Command disallowed. |