mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 03:39:49 +03:00
update
This commit is contained in:
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user