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.
Parameter Name | Description |
---|---|
endpointId | Endpoint where the cluster is registered |
clusterId | Cluster unique identifier |
clusterSide | Determines the cluster’s side (client or server) |
attrId | Attribute unique identifier |
attrType | Type of the attribute to be set |
repChange | Pointer to reportable change value to be set |
- ZCL status of operation