Skip to main content

Crate zwave_sim

Crate zwave_sim 

Source
Expand description

§zwave-sim

A Z-Wave Serial API controller simulator.

Simulator speaks the controller side of the Serial API over any byte stream (an in-memory pipe in tests, TCP for the zwave-sim binary), with simulated end nodes behind it: a mains-powered switch, a sleeping S0 sensor, S2 sensors and a SmartStart node (node::NodeSpec). Nodes join when a test presses their button during inclusion, run their side of the S0 and S2 key exchanges with this repository’s security crate, answer the interview, sleep and wake up, and send reports.

It is a test double, not an emulator of any chip’s quirks; bench recordings cover those.

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

License: MIT.

Modules§

node
Simulated end nodes: their command classes, their side of S0 and S2, sleeping and SmartStart.

Structs§

SimConfig
The simulated controller’s identity.
SimHandle
Controls a running simulator.
Simulator
A simulated controller with its nodes.

Traits§

Port
A byte stream the simulator serves.
PortBox
A boxed port.