mirror of
https://github.com/Telecominfraproject/wlan-cloud-owprov.git
synced 2025-10-30 18:18:03 +00:00
Adding tree import.
This commit is contained in:
@@ -138,6 +138,7 @@ namespace OpenWifi{
|
|||||||
std::cout << __LINE__ << std::endl;
|
std::cout << __LINE__ << std::endl;
|
||||||
for(const auto &i:C.configuration) {
|
for(const auto &i:C.configuration) {
|
||||||
Poco::JSON::Parser P;
|
Poco::JSON::Parser P;
|
||||||
|
std::cout << "Config:>>>" << std::endl << i.configuration << std::endl << "<<<" << std::endl;
|
||||||
auto T = P.parse(i.configuration).extract<Poco::JSON::Object>();
|
auto T = P.parse(i.configuration).extract<Poco::JSON::Object>();
|
||||||
}
|
}
|
||||||
std::cout << __LINE__ << std::endl;
|
std::cout << __LINE__ << std::endl;
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ locationcount() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addconfig() {
|
addconfig() {
|
||||||
payload="{ \"name\" : \"$1\", \"deviceTypes\" : [\"*\"], \"configuration\" : [ { \"name\" : \"radios\" , \"weight\" : 100, \"radios\": [{ \"band\": \"5G\", \"channel\": 52, \"channel-mode\": \"HE\", \"channel-width\": 80, \"country\": \"CA\" }, { \"band\": \"2G\", \"channel\": 11, \"channel-mode\": \"HE\", \"channel-width\": 20, \"country\": \"CA\" }] }] }"
|
payload="{ \"name\" : \"$1\", \"deviceTypes\" : [\"*\"], \"configuration\" : [ { \"name\" : \"radios\" , \"weight\" : 100, \"configuration\" : { \"radios\": [{ \"band\": \"5G\", \"channel\": 52, \"channel-mode\": \"HE\", \"channel-width\": 80, \"country\": \"CA\" }, { \"band\": \"2G\", \"channel\": 11, \"channel-mode\": \"HE\", \"channel-width\": 20, \"country\": \"CA\" } ] } }] }"
|
||||||
curl ${FLAGS} -X POST "https://${OWPROV}/api/v1/configurations/1" \
|
curl ${FLAGS} -X POST "https://${OWPROV}/api/v1/configurations/1" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-H "Authorization: Bearer ${token}" \
|
-H "Authorization: Bearer ${token}" \
|
||||||
|
|||||||
Reference in New Issue
Block a user