This commit is contained in:
2022-02-16 21:42:07 +03:00
parent 3b66ecb2cb
commit d207ef23d3
16 changed files with 37433 additions and 37407 deletions

View File

@@ -369,7 +369,7 @@ int intopic;
void mqttCallback(char *topic, byte *payload, unsigned int length)
{
if (!payload || !payload[0]) return;
if (!payload || !length) {debugSerial<<F("\n")<<F("Empty: [")<<topic<<F("]")<<endl;return;}
payload[length] = 0;
int fr = freeRam();
@@ -382,7 +382,8 @@ void mqttCallback(char *topic, byte *payload, unsigned int length)
}
statusLED.flash(ledBLUE);
debugSerial<<(char*)payload<<endl;
debugSerial<<F("\"")<<(char*)payload<<F("\"")<<endl;
short pfxlen = 0;
char * itemName = NULL;
char * subItem = NULL;