Adding removal subscriber

This commit is contained in:
stephb9959
2022-03-07 14:58:55 -08:00
parent 4995926afc
commit 1483b1fdd1

View File

@@ -211,7 +211,10 @@ namespace OpenWifi {
auto SectionName = Names[0];
std::cout << "Names[0]" << SectionName << std::endl;
_OWDEBUG_
auto SectionInfo = O->get(SectionName).extract<Poco::JSON::Object::Ptr>();
if(O->isArray(SectionName)) {
Configuration->set(SectionName, O->get(SectionName));
} else {
auto SectionInfo = O->get(SectionName);
_OWDEBUG_
auto InsertInfo = Sections.insert(SectionName);
_OWDEBUG_
@@ -243,6 +246,7 @@ namespace OpenWifi {
}
}
}
}
// Configuration = Tmp;
if(Config_.empty())
return false;