mirror of https://github.com/arendst/Tasmota.git
Fix unknown command topic
This commit is contained in:
parent
d1aee7dfec
commit
338499d8e2
|
@ -237,9 +237,9 @@ void CommandHandler(char* topicBuf, char* dataBuf, uint32_t data_len)
|
||||||
|
|
||||||
if (type == nullptr) {
|
if (type == nullptr) {
|
||||||
blinks = 201;
|
blinks = 201;
|
||||||
snprintf_P(topicBuf, sizeof(topicBuf), PSTR(D_JSON_COMMAND));
|
snprintf_P(stemp1, sizeof(stemp1), PSTR(D_JSON_COMMAND));
|
||||||
Response_P(PSTR("{\"" D_JSON_COMMAND "\":\"" D_JSON_UNKNOWN "\"}"));
|
Response_P(PSTR("{\"" D_JSON_COMMAND "\":\"" D_JSON_UNKNOWN "\"}"));
|
||||||
type = (char*)topicBuf;
|
type = (char*)stemp1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mqtt_data[0] != '\0') {
|
if (mqtt_data[0] != '\0') {
|
||||||
|
|
Loading…
Reference in New Issue