Compile-time Options
To enable the Diagnostics cluster in the code to be built, it is necessary to add the following to the zcl_options.h file:
#define CLD_DIAGNOSTICS
In addition, to include the software for a cluster client or server or both, it is necessary to add one of the following to the same file:
#define DIAGNOSTICS_CLIENT
#define DIAGNOSTICS_SERVER
Optional Attributes
Add this line to enable the optional Average MAC Retry Per APS Message Sent attribute:
#define CLD_DIAGNOSTICS_ATTR_ID_AVERAGE_MAC_RETRY_PER_APS_MESSAGE_SENT
Add this line to enable the optional Last Message LQI attribute:
#define CLD_DIAGNOSTICS_ATTR_ID_LAST_MESSAGE_LQI
Add this line to enable the optional Last Message RSSI attribute:
#define CLD_DIAGNOSTICS_ATTR_ID_LAST_MESSAGE_RSSI
Global Attributes
Add this line to define the value (n) of the Cluster Revision attribute:
#define CLD_DIAGNOSTICS_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:Diagnostics Cluster