Merge pull request #240 from mikkle/mqtt_mem_free

publish ESP free mem in mqtt publishSystem
This commit is contained in:
Gunnar Skjold 2022-02-20 19:30:20 +01:00 committed by GitHub
commit fcb4ccb462
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));