Expand description
Control actions (the write side of the API) and the controller seam.
Controller keeps the API testable without a printer: tests and --fake
use FakeController; live mode uses LiveController, which drives the
real device with send_and_verify (a second MQTT connection alongside the
monitor — they coexist, see docs/protocol.md).
Structs§
- Fake
Controller - A canned controller for
--fakemode and tests. - Live
Controller - Drives a real printer over LAN MQTT.
Enums§
- Axis
- A single jog axis.
- Control
Action - A control action the API can perform.
- Control
Error - Why a control action couldn’t be carried out — distinct from the printer
rejecting it (that is a
CommandOutcome::Rejected). - Home
Axes - Which axes a homing move targets (
G28with no arg homes all). - Temp
Part - Which heater a temperature target applies to.
Traits§
- Controller
- Executes control actions. Blocking — call from
spawn_blocking.
Functions§
- temp_
line - The
M104/M140line that setsparttocelsius(0= cooldown).