5.1.7.3.12 ZCL_SetReportableChange Function

Syntax

ZCL_Status_t ZCL_SetReportableChange(Endpoint_t endpointId, ClusterId_t clusterId, uint8_t clusterSide, ZCL_AttributeId_t attrId, uint8_t attrType, uint8_t *repChange);

Description

This function finds an attribute in ZCL and rewrites its reportable change value by the new one.

The function configures the ReportOnChange feature to enable reporting of an attribute when it changes. This function activates when the reportable change value of an attribute is configured to a non-zero value. Upon setting a new value to the attribute, the function initiates a comparison between the current value and the previously reported value. If the absolute difference exceeds the reportable change threshold, the function generates a new report and transmits it via air.

Input Parameters
Parameter NameDescription
endpointIdEndpoint where the cluster is registered
clusterIdCluster unique identifier
clusterSideDetermines the cluster’s side (client or server)
attrIdAttribute unique identifier
attrTypeType of the attribute to be set
repChangePointer to reportable change value to be set
Return Type and Values
  • ZCL status of operation