mirror of
https://github.com/anklimov/lighthub
synced 2025-12-09 21:29:49 +03:00
MQTT message loop fixed
This commit is contained in:
@@ -369,7 +369,7 @@ int intopic;
|
||||
|
||||
void mqttCallback(char *topic, byte *payload, unsigned int length)
|
||||
{
|
||||
if (!payload) return;
|
||||
if (!payload || !payload[0]) return;
|
||||
payload[length] = 0;
|
||||
|
||||
int fr = freeRam();
|
||||
|
||||
Reference in New Issue
Block a user