Skip to main content

Crate zigbee_zcl

Crate zigbee_zcl 

Source
Expand description

§zigbee-zcl

The Zigbee Cluster Library.

  • types: the ZCL data types.
  • value: self-describing attribute values, with bounded decoding.
  • frame: the ZCL frame header.
  • foundation: global commands (read, write, configure reporting, reports, default response, discovery).
  • defs: clusters, attributes and cluster-specific commands, generated at build time from data/clusters.toml (the ZCL specification as data), and a table-driven codec for every cluster command.
  • status: status codes.

Nothing here is written per cluster: adding a cluster or an attribute is an edit to the data file.

Part of zigbee-bridge, maintained by Pulzar. See the user guide, the library guide and the API documentation.

License: MIT.

Re-exports§

pub use defs::attr;
pub use defs::cluster;
pub use defs::cluster_by_name;
pub use defs::cluster_id;
pub use defs::command;
pub use defs::response;
pub use defs::ClusterDef;
pub use defs::CLUSTERS;
pub use foundation::Global;
pub use frame::Direction;
pub use frame::Frame;
pub use frame::FrameType;
pub use frame::Header;
pub use types::DataType;
pub use value::Value;

Modules§

defs
Cluster definitions and the table-driven codec for cluster commands.
foundation
Global (foundation) commands, common to every cluster (ZCL chapter 2.5).
frame
The ZCL frame: header and payload.
status
ZCL status codes (ZCL chapter 2.6.3).
types
ZCL data types (ZCL specification, chapter 2.6).
value
ZCL attribute and field values.

Constants§

PROFILE_HOME_AUTOMATION
The Home Automation / Zigbee 3.0 application profile.
PROFILE_LIGHT_LINK
The Zigbee Light Link profile.
PROFILE_SMART_ENERGY
The Smart Energy profile.