mirror of
https://github.com/Telecominfraproject/wlan-cloud-ucentralgw.git
synced 2026-03-20 03:41:02 +00:00
24 lines
555 B
C++
24 lines
555 B
C++
//
|
|
// Created by stephane bourque on 2021-06-17.
|
|
//
|
|
|
|
#include "RESTAPI_ouis.h"
|
|
#include "OUIServer.h"
|
|
|
|
namespace OpenWifi {
|
|
void RESTAPI_ouis::DoGet() {
|
|
Poco::JSON::Array Objects;
|
|
auto Select = GetParameter("macList","");
|
|
std::vector<std::string> Macs = Utils::Split(Select);
|
|
for (auto &i : Macs) {
|
|
Poco::JSON::Object O;
|
|
auto Manufacturer = OUIServer()->GetManufacturer(i);
|
|
O.set("tag", i);
|
|
O.set("value", Manufacturer);
|
|
Objects.add(O);
|
|
}
|
|
Poco::JSON::Object RetObj;
|
|
RetObj.set("tagList",Objects);
|
|
ReturnObject(RetObj);
|
|
}
|
|
} |