Skip to main content

Module command

Module command 

Source
Expand description

MQTT command envelopes — the JSON published to device/{serial}/request.

Each command renders to { "<category>": { "sequence_id": .., "command": .., .. } }. The printer echoes sequence_id back in its report, which is how we match a command to its effect (verify-by-reread).

Shapes here are derived from the OpenBambuAPI spec and must be confirmed against a real A1 mini; where the device disagrees with the spec, the device wins.

Structs§

AmsFilamentSetting
Parameters for print.ams_filament_setting — set a tray’s filament profile. Shapes are from the OpenBambuAPI spec. [spec]
ProjectFile
Parameters for print.project_file — start a sliced .gcode.3mf that is already on the printer’s storage.
SequenceIds
Monotonic allocator for the sequence_id field. Owned by the session/client — kept out of Command so commands stay pure, data-only values.

Enums§

AmsControl
Basic AMS control action (print.ams_control param).
Command
A control/query command sent to the printer.
LedNode
Which LED a system.ledctrl command targets. The node name is what the printer matches in lights_report.
SpeedLevel
Print-speed profile. A1/P1 use four levels; the printer echoes the active one back as spd_lvl in its report.
TimelapseControl
Whether to enable or disable the printer’s per-print timelapse recording.