ENH: support the react of actions for HMS actions

jira: [STUDIO-11664]
Change-Id: I5444748946e5baa219d6d413efd4e954dc578064
(cherry picked from commit 69f0bafd8a3f0d639fa85a83deec10baac1bac22)
This commit is contained in:
xin.zhang
2025-04-18 11:05:17 +08:00
committed by Noisyfox
parent 2728d8ec78
commit 3654f1e56f
4 changed files with 79 additions and 25 deletions

View File

@@ -2067,6 +2067,17 @@ int MachineObject::command_hms_ignore(const std::string& error_str, const std::s
return this->publish_json(j.dump(), 1);
}
int MachineObject::command_hms_stop(const std::string &error_str, const std::string &job_id) {
json j;
j["print"]["command"] = "stop";
j["print"]["err"] = error_str;
j["print"]["param"] = "reserve";
j["print"]["job_id"] = job_id;
j["print"]["sequence_id"] = std::to_string(MachineObject::m_sequence_id++);
return this->publish_json(j.dump(), 1);
}
int MachineObject::command_stop_buzzer()
{
json j;