mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-27 20:56:35 +00:00
Add entered command to MQTT command unknown message (bis)
This commit is contained in:
parent
fd7d2fc0a4
commit
4f2b24f53d
@ -470,7 +470,11 @@ void CommandHandler(char* topicBuf, char* dataBuf, uint32_t data_len) {
|
|||||||
|
|
||||||
if (command_unknown) {
|
if (command_unknown) {
|
||||||
TasmotaGlobal.blinks = 201;
|
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));
|
snprintf_P(stemp1, sizeof(stemp1), PSTR(D_JSON_COMMAND));
|
||||||
type = (char*)stemp1;
|
type = (char*)stemp1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user