Skip to main content

Crate zigbee_primitives

Crate zigbee_primitives 

Source
Expand description

§zigbee-primitives

Address, key and wire-format types shared by the zigbee-bridge crates.

Everything a Zigbee frame parser needs in common lives here: the 64-bit IEEE address (Ieee), the extended PAN id (ExtPanId), 128-bit keys (Key, whose Debug never prints the key), and a bounds-checked byte reader (wire::Reader) that every parser in the workspace uses instead of slicing, so that a malformed frame is an error and never a panic.

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

License: MIT.

Modules§

wire
A bounds-checked little-endian reader and writer for frame parsing.

Structs§

ExtPanId
A 64-bit extended PAN id, shown most-significant byte first like Ieee.
Ieee
A 64-bit IEEE (EUI-64) address.
Key
A 128-bit AES key (network key, link key, install-code-derived key).

Enums§

ParseHexError
Error from parsing a hex address or key.

Constants§

BROADCAST_ALL
Broadcast to every device.
BROADCAST_ROUTERS
Broadcast to every router and the coordinator.
BROADCAST_RX_ON_WHEN_IDLE
Broadcast to every device whose receiver is on when idle.
COORDINATOR_NODE_ID
The coordinator’s network address.

Type Aliases§

NodeId
A 16-bit network (short) address.
PanId
A 16-bit PAN id.