Skip to content

Commit 265f9d7

Browse files
Merge pull request #56 from Telecominfraproject/main
WIFI-13542 Release merge
2 parents 6939893 + 70469e1 commit 265f9d7

17 files changed

Lines changed: 4950 additions & 319 deletions

BUILDING.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ In order to build the OWANALYTICS, you will need to install its dependencies, wh
1212

1313
The build is done in 2 parts. The first part is to build a local copy of the framework tailored to your environment. This
1414
framework is called [Poco](https://github.com/pocoproject/poco). The version used in this project has a couple of fixes
15-
from the master copy needed for cmake. Please use the version of this [Poco fix](https://github.com/AriliaWireless/poco). Building
15+
from the master copy needed for cmake. Please use the version of this [Poco fix](https://github.com/Telecominfraproject/wlan-cloud-lib-poco). Building
1616
Poco may take several minutes depending on the platform you are building on.
1717

1818
## Ubuntu
@@ -24,7 +24,7 @@ sudo apt install librdkafka-dev
2424
sudo apt install zlib1g-dev nlohmann-json3-dev ca-certificates libcurl4-openssl-dev
2525

2626
cd ~
27-
git clone https://github.com/AriliaWireless/poco --branch poco-tip-v2
27+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1 poco
2828
cd poco
2929
mkdir cmake-build
3030
cd cmake-build
@@ -33,7 +33,7 @@ cmake --build . --config Release
3333
sudo cmake --build . --target install
3434

3535
cd ~
36-
git clone https://github.com/AriliaWireless/cppkafka --branch tip-v1
36+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1 cppkafka
3737
cd cppkafka
3838
mkdir cmake-build
3939
cd cmake-build
@@ -42,7 +42,7 @@ cmake --build . --config Release
4242
sudo cmake --build . --target install
4343

4444
cd ~
45-
git clone https://github.com/AriliaWireless/valijson --branch tip-v1
45+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1 valijson
4646
cd valijson
4747
mkdir cmake-build
4848
cd cmake-build
@@ -71,19 +71,19 @@ make -j 8
7171
The following instructions have proven to work on Fedora 33
7272
```bash
7373
sudo yum install cmake g++ openssl-devel mysql-devel mysql apr-util-devel boost boost-devel
74-
sudo yum install yaml-cpp-devel lua-devel
74+
sudo yum install yaml-cpp-devel lua-devel
7575
sudo dnf install postgresql.x86_64 librdkafka-devel
7676
sudo dnf install postgresql-devel json-devel
7777

78-
git clone https://github.com/AriliaWireless/poco --branch poco-tip-v1
78+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1
7979
cd poco
8080
mkdir cmake-build
8181
cd cmake-build
8282
cmake ..
8383
cmake --build . --config Release
8484
sudo cmake --build . --target install
8585

86-
git clone https://github.com/AriliaWireless/cppkafka --branch tip-v1
86+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1
8787
cd cppkafka
8888
mkdir cmake-build
8989
cd cmake-build
@@ -92,7 +92,7 @@ cmake --build . --config Release
9292
sudo cmake --build . --target install
9393

9494
cd ~
95-
git clone https://github.com/AriliaWireless/valijson --branch tip-v1
95+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1
9696
cd valijson
9797
mkdir cmake-build
9898
cd cmake-build
@@ -125,7 +125,7 @@ brew install openssl \
125125
nlohmann-json \
126126
fmt
127127

128-
git clone https://github.com/AriliaWireless/poco --branch poco-tip-v1
128+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-poco --branch poco-tip-v1
129129
pushd poco
130130
mkdir cmake-build
131131
push cmake-build
@@ -135,7 +135,7 @@ sudo cmake --build . --target install
135135
popd
136136
popd
137137

138-
git clone https://github.com/AriliaWireless/cppkafka --branch tip-v1
138+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-cppkafka --branch tip-v1
139139
pushd cppkafka
140140
mkdir cmake-build
141141
pushd cmake-build
@@ -145,7 +145,7 @@ sudo cmake --build . --target install
145145
popd
146146
popd
147147

148-
git clone https://github.com/AriliaWireless/valijson --branch tip-v1
148+
git clone https://github.com/Telecominfraproject/wlan-cloud-lib-valijson --branch tip-v1
149149
cd valijson
150150
mkdir cmake-build
151151
cd cmake-build

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.13)
2-
project(owanalytics VERSION 3.0.0)
2+
project(owanalytics VERSION 3.0.2)
33

44
set(CMAKE_CXX_STANDARD 17)
55
set(CMAKE_GENERATOR "Unix Makefiles")

build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
6
1+
8

src/RESTObjects/RESTAPI_ProvObjects.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,9 @@ namespace OpenWifi::ProvObjects {
587587
field_to_json(Obj, "locale", locale);
588588
field_to_json(Obj, "realMacAddress", realMacAddress);
589589
field_to_json(Obj, "doNotAllowOverrides", doNotAllowOverrides);
590+
field_to_json(Obj, "imported", imported);
591+
field_to_json(Obj, "connected", connected);
592+
field_to_json(Obj, "platform", platform);
590593
}
591594

592595
bool InventoryTag::from_json(const Poco::JSON::Object::Ptr &Obj) {
@@ -609,6 +612,9 @@ namespace OpenWifi::ProvObjects {
609612
field_from_json(Obj, "locale", locale);
610613
field_from_json(Obj, "realMacAddress", realMacAddress);
611614
field_from_json(Obj, "doNotAllowOverrides", doNotAllowOverrides);
615+
field_from_json(Obj, "imported", imported);
616+
field_from_json(Obj, "connected", connected);
617+
field_from_json(Obj, "platform", platform);
612618
return true;
613619
} catch (...) {
614620
}

src/RESTObjects/RESTAPI_ProvObjects.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,9 +490,11 @@ namespace OpenWifi::ProvObjects {
490490
std::string locale;
491491
std::string realMacAddress;
492492
bool doNotAllowOverrides = false;
493+
std::uint64_t imported=0;
494+
std::uint64_t connected=0;
495+
std::string platform{"AP"};
493496

494497
void to_json(Poco::JSON::Object &Obj) const;
495-
496498
bool from_json(const Poco::JSON::Object::Ptr &Obj);
497499
};
498500

0 commit comments

Comments
 (0)