4.5.4. Attributes

You've seen the command “toggle” many times throughout this book. But what if the application wants to know whether the light is on or off, after toggling it? That's where attributes come in. An application simply needs to read the attribute on that cluster.
Attributes store the current “state” of a given cluster. Collectively, a set of attributes on all clusters supported by a device define the state of that device. There are generic ZCL commands to read and write attributes on any given cluster.
Attributes are identified by a 16-bit number, and may be any value between 0x0000 and 0xffff. In the ZigBee Cluster Library, they tend to start at 0x0000 for any given cluster.
Attributes can even be set up to report automatically at regular ...

Get Zigbee Wireless Networking now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.