Expand description
Core modules for the csi-webserver executable.
This package is primarily run as a process (csi-webserver), but the
library target is intentionally documented so docs.rs provides a complete
technical reference for request payloads, state models, route handlers, and
serial processing behavior.
§Architecture
serialmaintains an ESP32 serial connection and parses frame boundaries.routesexposes HTTP and WebSocket handlers using Axum.stateholds shared runtime channels and mutable config snapshots.modelsdefines API payloads, response types, and command mappers.
§Typical runtime flow
- Configure device and parser mode through
/api/config/*endpoints. - Start session via
/api/control/start. - Consume frames from
/api/wsor dump file output. - Inspect runtime status via
/api/control/status.