Skip to main content

Module knx

Module knx 

Source
Expand description

KNXnet/IP tunnelling gateway. Rust owns the frames, the tunnels (channels, sequence numbers, heartbeats), acknowledgements, confirmations and the routing of group telegrams between tunnels; the handler is every device on the bus, answering reads and reacting to writes.

Modules§

actions
wire
KNXnet/IP (tunnelling) and cEMI framing, KNX addresses, and the datapoint-type (DPT) codec, shared by the server and the client. A group value is never handed to the handler as bytes: it is decoded by its DPT when one is known, and offered under every plausible reading when not.

Constants§

DEFAULT_ADDRESS
DEFAULT_MAX_TUNNELS
MAX_TUNNELS_CEILING
TELEGRAM_QUEUE
Telegrams waiting for the handler at once; past this, telegrams are dropped (logged).
TUNNEL_TIMEOUT
A tunnel that sends nothing (not even a CONNECTIONSTATE heartbeat) for this long is gone.

Functions§

spawn