Skip to content

Commit

Permalink
Add entered command to MQTT command unknown message (bis)
Browse files Browse the repository at this point in the history
  • Loading branch information
arendst committed Sep 17, 2024
1 parent fd7d2fc commit 4f2b24f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tasmota/tasmota_support/support_command.ino
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,11 @@ void CommandHandler(char* topicBuf, char* dataBuf, uint32_t data_len) {

if (command_unknown) {
TasmotaGlobal.blinks = 201;
Response_P(PSTR("{\"" D_JSON_COMMAND "\":\"%s%s" D_JSON_UNKNOWN "\"}"), type, (strlen(type))?" ":"");
Response_P(PSTR("{\"" D_JSON_COMMAND "\":\"" D_JSON_UNKNOWN "\""));
if (strlen(type)) {
ResponseAppend_P(PSTR(",\"Input\":\"%s\""), type);
}
ResponseJsonEnd();
snprintf_P(stemp1, sizeof(stemp1), PSTR(D_JSON_COMMAND));
type = (char*)stemp1;
}
Expand Down

0 comments on commit 4f2b24f

Please sign in to comment.