GATTS_UpdateEncDataKeyMatl
PIC32CX-BZ6
C
uint16_t GATTS_UpdateEncDataKeyMatl(uint16_t connHandle, uint8_t *p_key, uint8_t *p_iv);
Description
Updates the new encrypted data key material for a GATT client.
Parameters
Parameter | Description |
---|---|
[in] connHandle | Connection handle for the update. |
[in] p_key | The 16 bytes shared session key. |
[in] p_iv | The 8 bytes initialization vector. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Operation successfully started. |
MBA_RES_FAIL | Operation failed due to invalid permissions or unavailable memory. |
MBA_RES_OOM | Memory allocation failure occurred internally. |
MBA_RES_INVALID_PARA | Invalid parameters, such as an invalid connection handle or out-of-range values. |
MBA_RES_BUSY | An indication is already in progress. |
MBA_RES_NO_RESOURCE | No resources available to send the handle value. |