mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-11-03 12:08:08 +00:00
Initial checkins
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user