Compile-time options

This section describes the compile-time options that may be enabled in the zcl_options.h file of an application that uses the Appliance Control cluster.

To enable the Appliance Control cluster in the code to be built, it is necessary to add the following line to the file:

#define CLD_APPLIANCE_CONTROL

In addition, to enable the cluster as a client or server, it is also necessary to add one of the following lines to the same file:

#define APPLIANCE_CONTROL_SERVER
#define APPLIANCE_CONTROL_CLIENT

The Appliance Control cluster contains macros that may be optionally specified at compile-time by adding one or more of the following lines to the zcl_options.h file.

Optional attributes

Add this line to enable the optional Time Remaining attribute:

#define CLD_APPLIANCE_CONTROL_REMAINING_TIME

Global Attributes

Add this line to enable the optional Attribute Reporting Status attribute:

#define CLD_LEVELCONTROL_ATTR_ID_ATTRIBUTE_REPORTING_STATUS

Add this line to define the value (n) of the Cluster Revision attribute:

#define CLD_LEVELCONTROL_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:Appliance Control Cluster