Compile-time options

To enable the Scenes cluster in the code to be built, it is necessary to add the following to the zcl_options.h file:

#define CLD_SCENES

In addition, to include the software for a cluster client or server or both, it is necessary to add one or both of the following to the same file:

#define SCENES_CLIENT
#define SCENES_SERVER

The Scenes cluster contains macros that may be optionally specified at compile time by adding some or all the following lines to the zcl_options.h file.

To enable the optional Last Configured By attribute, add this line:

#define CLD_SCENES_ATTR_LAST_CONFIGURED_BY

To configure the maximum length of the Scene Name storage, add this line:

#define CLD_SCENES_MAX_SCENE_NAME_LENGTH            (16)

To configure the maximum number of scenes, add this line:

#define CLD_SCENES_MAX_NUMBER_OF_SCENES             (16)

To configure the maximum number of bytes available for scene storage, add this line:

#define CLD_SCENES_MAX_SCENE_STORAGE_BYTES          (20)

To enable the Enhanced Add Scene command, add this line:

#define CLD_SCENES_CMD_ENHANCED_ADD_SCENE

To enable the Enhanced View Scene command, add this line:

#define CLD_SCENES_CMD_ENHANCED_VIEW_SCENE

To enable the Copy Scene command, add this line:

#define CLD_SCENES_CMD_COPY_SCENE

To enable TransitionTime100ms in Scene tables, add this line:

#define CLD_SCENES_TABLE_SUPPORT_TRANSITION_TIME_IN_MS

To define the value (n) of the Cluster Revision attribute, add this line:

#define CLD_SCENES_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:Scenes Cluster