Skip to main content

Module daemon

Module daemon 

Source

Structs§

DaemonConfig
Runtime parameters for the common daemon loop.
ExponentialBackoff
Reconnection delay policy used after connect and poll failures.

Enums§

CommandEffect
Effect a successfully handled device command has on the polling loop.
HardwareStatus
Current device availability, published when it changes.

Constants§

MAX_POLL_INTERVAL
Maximum supported polling interval for a managed device daemon.

Traits§

Device
Device-specific connection, polling, and control operations.
Output
Output adapter for console, MQTT, or another telemetry transport.

Functions§

run
Run a device daemon until Ctrl-C is received.
run_with_shutdown
Run a device daemon until the supplied watch channel is set to true.
validate_poll_interval
Validate a configured or runtime polling interval using the shared bound.