Initial checkins

This commit is contained in:
stephb9959
2021-08-21 15:02:42 -07:00
parent 59eae42017
commit 8c60a131f9
2 changed files with 3 additions and 17 deletions

View File

@@ -115,10 +115,7 @@ namespace OpenWifi {
try {
Types::StringPairVec QueryData;
std::cout << __LINE__ << std::endl;
QueryData.push_back(std::make_pair("deviceSet","true"));
std::cout << __LINE__ << std::endl;
OpenAPIRequestGet Req( uSERVICE_FIRMWARE,
"/api/v1/firmwares",
QueryData,
@@ -129,15 +126,13 @@ namespace OpenWifi {
auto StatusCode = Req.Do(Response);
if( StatusCode == Poco::Net::HTTPResponse::HTTP_OK) {
std::cout << __LINE__ << std::endl;
std::cout << "Looking for types" << std::endl;
std::cout << "Looking for devices" << std::endl;
if(Response->isArray("deviceTypes")) {
std::cout << __LINE__ << std::endl;
std::cout << "Looking for types" << std::endl;
SubMutexGuard G(Mutex_);
DeviceTypes_.clear();
auto Array = Response->getArray("deviceTypes");
std::cout << __LINE__ << std::endl;
std::cout << "Looking for types" << std::endl;
for(const auto &i:*Array) {
DeviceTypes_.insert(i.toString());
std::cout << " D-> " << i.toString() << std::endl;