GBZ Message Controller#

Callbacks for GBZ Message Controller Component.

Callbacks#

void

Decrypt data.

void

Encrypt data.

Callbacks Documentation#

emberAfPluginGbzMessageControllerDecryptDataCallback#

void emberAfPluginGbzMessageControllerDecryptDataCallback (EmberAfGbzMessageData *data)

Decrypt data.

Parameters
N/Adata

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.


Definition at line 373 of file app/framework/plugin/gbz-message-controller/gbz-message-controller.h

emberAfPluginGbzMessageControllerEncryptDataCallback#

void emberAfPluginGbzMessageControllerEncryptDataCallback (EmberAfGbzMessageData *data)

Encrypt data.

Parameters
N/Adata

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.


Definition at line 387 of file app/framework/plugin/gbz-message-controller/gbz-message-controller.h