stephb9959
2024-03-14 22:26:31 -07:00
parent e75d3cfdbb
commit 05b6a9474b
14 changed files with 90 additions and 84 deletions

View File

@@ -102,7 +102,7 @@ namespace OpenWifi {
auto Config = Obj->get("configuration").toString();
Poco::JSON::Object Answer;
std::string Error;
auto DeviceType = GetParameter("deviceType", "AP");
auto DeviceType = Poco::toLower(GetParameter("deviceType", Platforms::AP));
auto Res =
ValidateUCentralConfiguration(ConfigurationValidator::GetType(DeviceType),Config, Error, GetBoolParameter("strict", false));
Answer.set("valid", Res);