Compile-time Options
To enable the Temperature Measurement cluster in the code to be built, it is necessary to add the following to the zcl_options.h file:
#define CLD_TEMPERATURE_MEASUREMENT
In addition, to include the software for a cluster client or server, it is necessary to add one of the following to the same file:
#define TEMPERATURE_MEASUREMENT_CLIENT
#define TEMPERATURE_MEASUREMENT_SERVER
Optional Attribute
Add this line to enable the optional Tolerance attribute:
#define CLD_TEMPMEAS_ATTR_TOLERANCE
Global Attributes
Add this line to enable the optional Attribute Reporting Status attribute:
#define CLD_TEMPMEAS_ATTR_ID_ATTRIBUTE_REPORTING_STATUS
Add this line to define the value (n) of the Cluster Revision attribute:
#define CLD_TEMPMEAS_CLUSTER_REVISION <n>
The default value is 1, which corresponds to the revision of the cluster in the ZCL r6 specification (see Section 2.4).
Parent topic:Temperature Measurement Cluster