mirror of
https://github.com/anklimov/lighthub
synced 2026-09-13 13:44:04 +00:00
update
This commit is contained in:
Binary file not shown.
+6869
-6864
File diff suppressed because it is too large
Load Diff
+8381
-8376
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.
+8033
-8028
File diff suppressed because it is too large
Load Diff
+7790
-7785
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+6357
-6352
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
-2
@@ -369,7 +369,7 @@ int intopic;
|
|||||||
|
|
||||||
void mqttCallback(char *topic, byte *payload, unsigned int length)
|
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;
|
payload[length] = 0;
|
||||||
|
|
||||||
int fr = freeRam();
|
int fr = freeRam();
|
||||||
@@ -382,7 +382,8 @@ void mqttCallback(char *topic, byte *payload, unsigned int length)
|
|||||||
}
|
}
|
||||||
|
|
||||||
statusLED.flash(ledBLUE);
|
statusLED.flash(ledBLUE);
|
||||||
debugSerial<<(char*)payload<<endl;
|
debugSerial<<F("\"")<<(char*)payload<<F("\"")<<endl;
|
||||||
|
|
||||||
short pfxlen = 0;
|
short pfxlen = 0;
|
||||||
char * itemName = NULL;
|
char * itemName = NULL;
|
||||||
char * subItem = NULL;
|
char * subItem = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user