GBZ Message Controller#

Callbacks for GBZ Message Controller Component.

Callbacks#

void
sl_zigbee_af_gbz_message_controller_decrypt_data_cb(sl_zigbee_af_gbz_message_data_t *data)

Decrypt data.

void
sl_zigbee_af_gbz_message_controller_encrypt_data_cb(sl_zigbee_af_gbz_message_data_t *data)

Encrypt data.

Callbacks Documentation#

sl_zigbee_af_gbz_message_controller_decrypt_data_cb#

void sl_zigbee_af_gbz_message_controller_decrypt_data_cb (sl_zigbee_af_gbz_message_data_t * 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

sl_zigbee_af_gbz_message_controller_encrypt_data_cb#

void sl_zigbee_af_gbz_message_controller_encrypt_data_cb (sl_zigbee_af_gbz_message_data_t * 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