diff --git a/lighthub/main.cpp b/lighthub/main.cpp index 99cdb78..158c5b7 100644 --- a/lighthub/main.cpp +++ b/lighthub/main.cpp @@ -245,7 +245,8 @@ else itemName=topic+pfxlen; - if(!strcmp(itemName,CMDTOPIC)) { + if(!strcmp(itemName,CMDTOPIC) && payload && (strlen((char*) payload)>1)) { + // mqttClient.publish(topic, ""); cmd_parse((char *)payload); return; } diff --git a/lighthub/owTerm.cpp b/lighthub/owTerm.cpp index 118907c..8bc24ae 100644 --- a/lighthub/owTerm.cpp +++ b/lighthub/owTerm.cpp @@ -76,7 +76,7 @@ int owUpdate() { }//if } //while - debugSerial<