mirror of
https://github.com/jomjol/AI-on-the-edge-device.git
synced 2025-12-08 12:36:52 +03:00
.
This commit is contained in:
@@ -192,7 +192,7 @@ bool ClassFlowMQTT::doFlow(string zwtime)
|
|||||||
char uptimeStr[11];
|
char uptimeStr[11];
|
||||||
sprintf(uptimeStr, "%ld", (long)getUpTime());
|
sprintf(uptimeStr, "%ld", (long)getUpTime());
|
||||||
|
|
||||||
// Try sending uptime. If it fails, re-run init
|
// Try sending ptime. If it fails, re-run init
|
||||||
if (!MQTTPublish(zw, uptimeStr, SetRetainFlag))
|
if (!MQTTPublish(zw, uptimeStr, SetRetainFlag))
|
||||||
{ // Failed
|
{ // Failed
|
||||||
LogFile.WriteToFile(ESP_LOG_WARN, "MQTT - Re-running init...!");
|
LogFile.WriteToFile(ESP_LOG_WARN, "MQTT - Re-running init...!");
|
||||||
|
|||||||
Reference in New Issue
Block a user