mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-01-13 15:37:03 +00:00
Merge pull request #240 from mikkle/mqtt_mem_free
publish ESP free mem in mqtt publishSystem
This commit is contained in:
commit
fcb4ccb462
@ -211,6 +211,7 @@ bool RawMqttHandler::publishSystem(HwTools* hw) {
|
||||
if(vcc > 0) {
|
||||
mqtt->publish(topic + "/vcc", String(vcc, 2));
|
||||
}
|
||||
mqtt->publish(topic + "/mem", String(ESP.getFreeHeap()));
|
||||
mqtt->publish(topic + "/rssi", String(hw->getWifiRssi()));
|
||||
if(hw->getTemperature() > -85) {
|
||||
mqtt->publish(topic + "/temperature", String(hw->getTemperature(), 2));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user