Download JN-UG-3077

Transcript
ZigBee Cluster Library
User Guide
13.9 Compile-Time Options
To enable the Alarms cluster in the code to be built, it is necessary to add the following
to the zcl_options.h file:
#define CLD_ALARMS
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 ALARMS_CLIENT
#define ALARMS_SERVER
The Alarms 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.
Add this line to enable the optional Alarm Count attribute:
#define CLD_ALARMS_ATTR_ALARM_COUNT
Add this line to set the maximum number of entries in the Alarms table on the server:
#define CLD_ALARMS_MAX_NUMBER_OF_ALARMS n
where n is the maximum to be set.
JN-UG-3077 v2.1
© NXP Laboratories UK 2015
261