Adding locale support on connection to support subscriber and local regulations.

This commit is contained in:
stephb9959
2022-02-24 09:36:45 -08:00
parent a18f8ed0f7
commit cc22fe38a0
10 changed files with 200 additions and 46 deletions

View File

@@ -48,6 +48,7 @@ namespace OpenWifi::GWObjects {
field_to_json(Obj,"subscriber", subscriber);
field_to_json(Obj,"entity", entity);
field_to_json(Obj,"modified", modified);
field_to_json(Obj,"locale", locale);
}
void Device::to_json_with_status(Poco::JSON::Object &Obj) const {
@@ -86,6 +87,7 @@ namespace OpenWifi::GWObjects {
field_from_json(Obj,"compatible",Compatible);
field_from_json(Obj,"subscriber", subscriber);
field_from_json(Obj,"entity", entity);
field_from_json(Obj,"locale", locale);
return true;
} catch (const Poco::Exception &E) {
}
@@ -200,6 +202,7 @@ namespace OpenWifi::GWObjects {
field_to_json(Obj,"websocketPackets", websocketPackets);
field_to_json(Obj,"kafkaClients", kafkaClients);
field_to_json(Obj,"kafkaPackets", kafkaPackets);
field_to_json(Obj,"locale", locale);
switch(VerifiedCertificate) {
case NO_CERTIFICATE: