Global ZCL#

All the ZCL global commands defined in the ZigBee Cluster Library Specification. These command line commands can be used to send messages over the air to, for instance, read and write attributes to devices on the network.

Macros#

#define

zcl global direction [direction:1]

#define

zcl global disc-com-gen [clusterId:2] [startCommandId:1] [maxCommandId:1]

#define

zcl global disc-com-rec [clusterId:2] [startCommandId:1] [maxCommandId:1]

#define

zcl global discover [cluster:2] [attributeId:2] [max:1]

#define

zcl global expect-report-from-me [cluster:2] [attributeId:2] [timeout:2]

#define

zcl global nwrite [cluster:2] [attributeId:2] [type:1] [data:-1]

#define

zcl global read [cluster:2] [attributeId:2]

#define

zcl global report [endpoint:1] [clusterId:2] [attributeId:2] [mask:1]

#define

zcl global report-read [cluster:2] [attributeId:2] [direction:1]

#define

zcl global send-me-a-report [cluster:2] [attributeId:2] [dataType:1] [minReportTime:2] [maxReportTime:2] [reportableChange:-1]

#define

zcl global uwrite [cluster:2] [attributeId:2] [type:1] [data:-1]

#define

zcl global write [cluster:2] [attributeId:2] [type:4] [data:-1]

Macro Definition Documentation#

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DIRECTION#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DIRECTION

zcl global direction [direction:1]

  • Sets the direction for global commands, either client to server or server to client.

    • direction - INT8U - The direction for global commands, 0 = client to server, 1 = server to client.


Definition at line 214 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DISC_COM_GEN#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DISC_COM_GEN

zcl global disc-com-gen [clusterId:2] [startCommandId:1] [maxCommandId:1]

  • Create a Discover Commands Generated command with associated values.

    • clusterId - INT16U - The cluster to find commands on.

    • startCommandId - INT8U - The command id to start the command search on.

    • maxCommandId - INT8U - Max command ids to search for.


Definition at line 222 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DISC_COM_REC#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DISC_COM_REC

zcl global disc-com-rec [clusterId:2] [startCommandId:1] [maxCommandId:1]

  • Create a Discover Commands Received command with associated values.

    • clusterId - INT16U - The cluster to find commands on.

    • startCommandId - INT8U - The command id to start the command search on.

    • maxCommandId - INT8U - Max command ids to search for.


Definition at line 230 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DISCOVER#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_DISCOVER

zcl global discover [cluster:2] [attributeId:2] [max:1]

  • Creates discovery message for devices with the associated cluster and attribute specified.

    • cluster - INT16U - The cluster id of the cluster to discover.

    • attributeId - INT16U - The attribute id of the attribute to read during discovery.

    • max - INT8U - Max number of discovery responses.


Definition at line 238 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_EXPECT_REPORT_FROM_ME#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_EXPECT_REPORT_FROM_ME

zcl global expect-report-from-me [cluster:2] [attributeId:2] [timeout:2]

  • Create a expect-report-from-me message with associated values.

    • cluster - INT16U - The cluster id for the requested report.

    • attributeId - INT16U - The attribute id for the requested report.

    • timeout - INT16U - Maximum amount of time between reports.


Definition at line 246 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_NWRITE#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_NWRITE

zcl global nwrite [cluster:2] [attributeId:2] [type:1] [data:-1]

  • Creates a global write command message to write to the cluster and attribute specified

    • cluster - INT16U - The cluster id of the cluster to read from.

    • attributeId - INT16U - The attribute id of the attribute to read.

    • type - INT8U - The type of the attribute to write.

    • data - OCTET_STRING - The data to be written.


Definition at line 255 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_READ#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_READ

zcl global read [cluster:2] [attributeId:2]

  • Creates a global read command message to read from the cluster and attribute specified

    • cluster - INT16U - The cluster id of the cluster to read from.

    • attributeId - INT16U - The attribute id of the attribute to read.


Definition at line 262 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_REPORT#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_REPORT

zcl global report [endpoint:1] [clusterId:2] [attributeId:2] [mask:1]

    • endpoint - INT8U - The desired endpoint.

    • clusterId - INT16U - The cluster id.

    • attributeId - INT16U - The attribute id.

    • mask - INT8U - The mask.


Definition at line 271 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_REPORT_READ#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_REPORT_READ

zcl global report-read [cluster:2] [attributeId:2] [direction:1]

  • Creates a global read reporting command for the associated cluster, attribute and server/client direction.

    • cluster - INT16U - The cluster id to read from.

    • attributeId - INT16U - The attribute id to read from.

    • direction - INT8U - 0 for client-to-server, 1 for server-to-client.


Definition at line 279 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_SEND_ME_A_REPORT#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_SEND_ME_A_REPORT

zcl global send-me-a-report [cluster:2] [attributeId:2] [dataType:1] [minReportTime:2] [maxReportTime:2] [reportableChange:-1]

  • Creates a global send me a report command for the associated values.

    • cluster - INT16U - The cluster id of the requested report.

    • attributeId - INT16U - The attribute id for requested report.

    • dataType - INT8U - The two byte ZigBee type value for the requested report.

    • minReportTime - INT16U - Minimum number of seconds between reports.

    • maxReportTime - INT16U - Maximum number of seconds between reports.

    • reportableChange - OCTET_STRING - Amount of change to trigger a report.


Definition at line 290 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_UWRITE#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_UWRITE

zcl global uwrite [cluster:2] [attributeId:2] [type:1] [data:-1]

  • Creates a global write undivided command message to write to the cluster and attribute specified

    • cluster - INT16U - The cluster id of the cluster to write to.

    • attributeId - INT16U - The attribute id of the attribute to write.

    • type - INT8U - The type of the attribute to write.

    • data - OCTET_STRING - The data to be written.


Definition at line 299 of file ./app/framework/test/headers/cli.doc

EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_WRITE#

#define EMBER_AF_DOXYGEN_CLI_COMMAND_ZCL_GLOBAL_ZCL_GLOBAL_WRITE

zcl global write [cluster:2] [attributeId:2] [type:4] [data:-1]

  • Creates a global write command message to write to the cluster and attribute specified

    • cluster - INT16U - The cluster id of the cluster to write to.

    • attributeId - INT16U - The attribute id of the attribute to write.

    • type - INT32U - The type of the attribute to write.

    • data - OCTET_STRING - The data to be written.


Definition at line 308 of file ./app/framework/test/headers/cli.doc