Compile-time options

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

#define CLD_COMMISSIONING

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 COMMISSIONING_CLIENT
#define COMMISSIONING_SERVER

Optional Attributes

The Commissioning cluster contains attributes that may be optionally enabled at compile-time by adding some or all of the following lines to the zcl_options.h file (see Section 43.2 and Section 43.3):

#define         CLD_COMM_ATTR_SHORT_ADDRESS
#define CLD_COMM_ATTR_EXTENED_PAN_ID
#define CLD_COMM_ATTR_PAN_ID
#define CLD_COMM_ATTR_CHANNEL_MASK
#define CLD_COMM_ATTR_PROTOCOL_VERSION
#define CLD_COMM_ATTR_STACK_PROFILE
#define CLD_COMM_ATTR_START_UP_CONTROL
        #define CLD_COMM_ATTR_TC_ADDR
#define CLD_COMM_ATTR_TC_MASTER_KEY
        #define CLD_COMM_ATTR_NWK_KEY
#define CLD_COMM_ATTR_USE_INSECURE_JOIN
        #define CLD_COMM_ATTR_PRE_CONFIG_LINK_KEY
#define CLD_COMM_ATTR_NWK_KEY_SEQ_NO
        #define CLD_COMM_ATTR_NWK_KEY_TYPE
#define CLD_COMM_ATTR_NWK_MANAGER_ADDR
#define CLD_COMM_ATTR_SCAN_ATTEMPTS
#define CLD_COMM_ATTR_TIME_BW_SCANS
#define CLD_COMM_ATTR_REJOIN_INTERVAL
#define CLD_COMM_ATTR_MAX_REJOIN_INTERVAL
        #define CLD_COMM_ATTR_INDIRECT_POLL_RATE
#define CLD_COMM_ATTR_PARENT_RETRY_THRSHLD
#define CLD_COMM_ATTR_CONCENTRATOR_FLAG
#define CLD_COMM_ATTR_CONCENTRATOR_RADIUS
#define CLD_COMM_ATTR_CONCENTRATOR_DISCVRY_TIME

Optional Commands

The Commissioning cluster contains commands that may be optionally enabled at compile-time by adding some or all of the following lines to the zcl_options.h file.

To enable the Save Start-up Parameters command, add the following line:

#define CLD_COMMISSIONING_CMD_SAVE_STARTUP_PARAMS

To enable the Restore Start-up Parameters command, add the following line:

#define CLD_COMMISSIONING_CMD_RESTORE_STARTUP_PARAMS

Parent topic:Commissioning Cluster