Initial commit

This commit is contained in:
stephb9959
2022-03-15 11:03:09 -07:00
parent 61269c0788
commit 55ae3c483e
11 changed files with 187 additions and 58 deletions

View File

@@ -76,6 +76,8 @@ namespace OpenWifi::AnalyticsObjects {
field_to_json(Obj,"associations_2g",associations_2g);
field_to_json(Obj,"associations_5g",associations_5g);
field_to_json(Obj,"associations_6g",associations_6g);
field_to_json(Obj,"health",health);
field_to_json(Obj,"lastHealth",lastHealth);
}
bool DeviceInfo::from_json(const Poco::JSON::Object::Ptr &Obj) {
@@ -98,6 +100,8 @@ namespace OpenWifi::AnalyticsObjects {
field_from_json(Obj,"associations_2g",associations_2g);
field_from_json(Obj,"associations_5g",associations_5g);
field_from_json(Obj,"associations_6g",associations_6g);
field_from_json(Obj,"health",health);
field_from_json(Obj,"lastHealth",lastHealth);
return true;
} catch(...) {