/// <summary> /// This uses the Octoprint API to pause the print, /// this is needed because the Gcode command only works /// when printing from SD, where as when printing from /// Octoprint the commands are streamed to the printer. /// </summary> public override Task PauseJob() { return(_connector.Request(Machine, "api/job", "POST", body: new { command = "pause", action = "pause" })); }
public override async Task ExecuteGcode(string command) { await _connector.Request(Machine, "rr_gcode", query : new[] { ("gcode", command) });