i try to write a plugin for the MMU2, but for this i have to handle the communication in the middle of a print. If a Filament change command is detected T1 or so, i have to strip it from the queue, pause it, send commands to the printer for unloading, send commands to the MMU2 (wait for the OK) for the filament change, send commands to the printer for grabbing the filament and then resume the print.
the communication with the printer should be no problem, because that are predefined gcodes (not in case of some error handling).
the print could be paused with the @pause command?
but how to resume it?
how can i send commands directly to the printer without the queue?
i tried octoprint.printer PrinterInterface as described in the manual (internal modules)
commands and get a notImplementedError()