mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-05-02 22:33:41 +00:00
Fixed uptime rollower in MQTT raw mode
This commit is contained in:
@@ -267,7 +267,7 @@ bool RawMqttHandler::publishSystem(HwTools* hw, EntsoeApi* eapi, EnergyAccountin
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
mqtt->publish(topic + "/id", WiFi.macAddress(), true, 0);
|
mqtt->publish(topic + "/id", WiFi.macAddress(), true, 0);
|
||||||
mqtt->publish(topic + "/uptime", String((unsigned long) millis64()/1000));
|
mqtt->publish(topic + "/uptime", String((uint32_t) (millis64()/1000)));
|
||||||
float vcc = hw->getVcc();
|
float vcc = hw->getVcc();
|
||||||
if(vcc > 0) {
|
if(vcc > 0) {
|
||||||
mqtt->publish(topic + "/vcc", String(vcc, 2));
|
mqtt->publish(topic + "/vcc", String(vcc, 2));
|
||||||
|
|||||||
Reference in New Issue
Block a user