Skip to content

Commit

Permalink
support http_tasmota_json_status_STS for STATUS 11?
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Jun 5, 2023
1 parent 7d8f7be commit 6de16f0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/httpserver/json_interface.c
Expand Up @@ -936,6 +936,14 @@ int JSON_ProcessCommandReply(const char* cmd, const char* arg, void* request, js
MQTT_PublishPrinterContentsToStat((struct obk_mqtt_publishReplyPrinter_s*)request, "STATUS4");
}
}
else if (!stricmp(arg, "11")) {
printer(request, "{");
http_tasmota_json_status_STS(request, printer, true);
printer(request, "}");
if (flags == COMMAND_FLAG_SOURCE_MQTT) {
MQTT_PublishPrinterContentsToStat((struct obk_mqtt_publishReplyPrinter_s*)request, "STATUS11");
}
}
else if (!stricmp(arg, "2")) {
printer(request, "{");
http_tasmota_json_status_FWR(request, printer);
Expand Down

0 comments on commit 6de16f0

Please sign in to comment.