Add freeheap to cloud payload

This commit is contained in:
samuelbles07
2024-11-21 02:36:56 +07:00
parent 2be91b3968
commit 4c165b31f5
2 changed files with 7 additions and 0 deletions
+4
View File
@@ -612,6 +612,10 @@ String Measurements::toString(bool localServer, AgFirmwareMode fwMode, int rssi,
root["serialno"] = ag.deviceId();
root["firmware"] = ag.getVersion();
root["model"] = AgFirmwareModeName(fwMode);
} else {
#ifndef ESP8266
root["freeHeap"] = ESP.getFreeHeap();
#endif
}
String result = JSON.stringify(root);