forked from airgradienthq/arduino
Add freeheap to cloud payload
This commit is contained in:
1 parent
2be91b3968
commit
4c165b31f5
2 files changed
+7
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user