Skip to main content

Module control

Module control 

Source
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§

FakeController
A canned controller for --fake mode and tests.
LiveController
Drives a real printer over LAN MQTT.

Enums§

Axis
A single jog axis.
ControlAction
A control action the API can perform.
ControlError
Why a control action couldn’t be carried out — distinct from the printer rejecting it (that is a CommandOutcome::Rejected).
HomeAxes
Which axes a homing move targets (G28 with no arg homes all).
TempPart
Which heater a temperature target applies to.

Traits§

Controller
Executes control actions. Blocking — call from spawn_blocking.

Functions§

temp_line
The M104/M140 line that sets part to celsius (0 = cooldown).

Type Aliases§

ControlResult