GBZ Message Controller#
Callbacks for GBZ Message Controller Component.
Callbacks#
Decrypt data.
Encrypt data.
Callbacks Documentation#
emberAfPluginGbzMessageControllerDecryptDataCallback#
void emberAfPluginGbzMessageControllerDecryptDataCallback (EmberAfGbzMessageData * data)
Decrypt data.
N/A | data | Ver.: always |
This function is called by the GBZ Message Controller plugin to decrypt a ZCL payload. If the decryption is successful, the application needs to allocate memory for the new decrypted data and pass the pointer via the "plainPayload" field as well as the plainPayloadLength field for the length. The framework needs to free the allocated memory. If the decryption fails, the callback return false and should not modify any data.
379
of file app/framework/plugin/gbz-message-controller/gbz-message-controller.h
emberAfPluginGbzMessageControllerEncryptDataCallback#
void emberAfPluginGbzMessageControllerEncryptDataCallback (EmberAfGbzMessageData * data)
Encrypt data.
N/A | data | Ver.: always |
This function is called by the GBZ Message Controller plugin to encrypt a ZCL payload. If the encryption is successful, the application needs to allocate memory for the new encrypted data and pass the pointer via the "encryptedPayload" field as well as the encryptedPayloadLength field for the length. The framework needs to free the allocated memory. If the encryption fails, the callback return false and should not modify any data.
393
of file app/framework/plugin/gbz-message-controller/gbz-message-controller.h