mirror of
https://github.com/Telecominfraproject/wlan-cloud-analytics.git
synced 2026-01-27 10:22:33 +00:00
Adding band to SSIDTP
This commit is contained in:
@@ -377,10 +377,11 @@ namespace OpenWifi::RESTAPI_utils {
|
||||
|
||||
inline void field_from_json(const Poco::JSON::Object::Ptr &Obj, const char *Field, int &Value) {
|
||||
std::cout << "Field: " << Field << std::endl ;
|
||||
if(Obj->isObject(Field)) {
|
||||
if(Obj->has(Field)) {
|
||||
Value = Obj->get(Field).extract<int>();
|
||||
if(std::strcmp(Field,"rssi")==0)
|
||||
std::cout << "rssi:" << Value << std::endl;
|
||||
std::cout << "Value: " << Value << std::endl;
|
||||
} else {
|
||||
std::cout << "Field: " << Field << std::endl;
|
||||
}
|
||||
@@ -388,10 +389,11 @@ namespace OpenWifi::RESTAPI_utils {
|
||||
|
||||
inline void field_from_json(const Poco::JSON::Object::Ptr &Obj, const char *Field, int64_t &Value) {
|
||||
std::cout << "Field: " << Field << std::endl ;
|
||||
if(Obj->isObject(Field)) {
|
||||
if(Obj->has(Field)) {
|
||||
Value = Obj->get(Field).extract<int64_t>();
|
||||
if(std::strcmp(Field,"rssi")==0)
|
||||
std::cout << "rssi:" << Value << std::endl;
|
||||
std::cout << "Value: " << Value << std::endl;
|
||||
} else {
|
||||
std::cout << "Field: " << Field << std::endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user