Skip to main content

Crate cls_eedi

Crate cls_eedi 

Source
Expand description

Backend and local-device components for KEO CLS.EEDI 1.2.0.

Decode envelopes with wire::Message, apply protocol transitions in engine and bind provisioned topic routes with transport. Enable mqtt for broker I/O and eebus for equipment limits and meter snapshots. Use metering to sum signed active power across provisioned devices. Enable eebus-pairing to confirm commissioning from an authenticated SHIP session.

mqtt and eebus-pairing need exactly one TLS crypto provider: aws-lc-rs or ring. Both transports use it, and neither installs or reads the rustls process default.

use cls_eedi::wire::{Control, Limit, Message, Power};

// A 4,200 W consumption ceiling for one minute.
let control = Control::limits(Power::consumption(Limit::active(4200).lasting(60)));
let message = Message::new("limit-1", "operator", control);
assert_eq!(Message::decode(&message.encode()?)?, message);

Modules§

eebus
Integrate CLS.EEDI controls and metering with an authenticated EEBUS peer.
engine
Deterministic, per-route CLS.EEDI roles. Callers own clocks, MQTT and equipment.
metering
Aggregate signed momentary total power from the provisioned controllable devices.
transport
Provisioned MQTT routes for one local device and its authorized SHIP peers.
wire
Typed CLS.EEDI 1.x JSON messages. The default sender version is 1.2.0.

Constants§

CRYPTO_PROVIDER
TLS crypto provider compiled into mqtt and eebus-pairing.