Reporting#

Callbacks for Reporting Component.

Callbacks#

sl_zigbee_af_reporting_configured_cb(const sl_zigbee_af_plugin_reporting_entry_t *entry)

Configure a reporting entry.

bool
sl_zigbee_af_reporting_get_default_reporting_config_cb(sl_zigbee_af_plugin_reporting_entry_t *entry)

Get default reporting configuration values.

Callbacks Documentation#

sl_zigbee_af_reporting_configured_cb#

sl_zigbee_af_status_t sl_zigbee_af_reporting_configured_cb (const sl_zigbee_af_plugin_reporting_entry_t * entry)

Configure a reporting entry.

Parameters
N/Aentry

Ver.: always

This callback is called by the Reporting plugin whenever a reporting entry is configured, including when entries are deleted or updated. The application can use this callback for scheduling readings or measurements based on the minimum and maximum reporting interval for the entry. The application should return SL_ZIGBEE_ZCL_STATUS_SUCCESS if it can support the configuration or an error status otherwise. Note: attribute reporting is required for many clusters and attributes, so rejecting a reporting configuration may violate ZigBee specifications.


Definition at line 162 of file app/framework/plugin/reporting/reporting.h

sl_zigbee_af_reporting_get_default_reporting_config_cb#

bool sl_zigbee_af_reporting_get_default_reporting_config_cb (sl_zigbee_af_plugin_reporting_entry_t * entry)

Get default reporting configuration values.

Parameters
N/Aentry

Ver.: always

This callback is called by the Reporting plugin to get the default reporting configuration values from the user if a default value is not available within AF-generated default reporting configuration table. The application needs to write to the minInterval, maxInterval, and reportable change in the passed I/O pointer in the argument while handling this callback. The application returns true if it has provided default values or false for reporting plugin for further handling.


Definition at line 176 of file app/framework/plugin/reporting/reporting.h