Adding uptime and memory.

This commit is contained in:
stephb9959
2022-03-17 14:27:27 -07:00
parent 2b3ef020f8
commit 6ad843f94e
6 changed files with 33 additions and 2 deletions

View File

@@ -79,6 +79,8 @@ namespace OpenWifi::AnalyticsObjects {
field_to_json(Obj,"health",health);
field_to_json(Obj,"lastHealth",lastHealth);
field_to_json(Obj,"locale",locale);
field_to_json(Obj,"uptime",uptime);
field_to_json(Obj,"memory",memory);
}
bool DeviceInfo::from_json(const Poco::JSON::Object::Ptr &Obj) {
@@ -104,6 +106,8 @@ namespace OpenWifi::AnalyticsObjects {
field_from_json(Obj,"health",health);
field_from_json(Obj,"lastHealth",lastHealth);
field_from_json(Obj,"locale",locale);
field_from_json(Obj,"uptime",uptime);
field_from_json(Obj,"memory",memory);
return true;
} catch(...) {