Adding band to SSIDTP

This commit is contained in:
stephb9959
2022-03-24 11:12:17 -07:00
parent 7d1e52279d
commit 6fcecd1e75

View File

@@ -377,7 +377,9 @@ namespace OpenWifi::RESTAPI_utils {
inline void field_from_json(const Poco::JSON::Object::Ptr &Obj, const char *Field, int &Value) {
if(Obj->isObject(Field)) {
Value = Obj->get(Field);
Value = Obj->get(Field).extract<int>();
if(std::strcmp(Field,"rssi")==0)
std::cout << "rssi:" << Value << std::endl;
} else {
std::cout << "Field: " << Field << std::endl;
}
@@ -385,7 +387,9 @@ namespace OpenWifi::RESTAPI_utils {
inline void field_from_json(const Poco::JSON::Object::Ptr &Obj, const char *Field, int64_t &Value) {
if(Obj->isObject(Field)) {
Value = Obj->get(Field);
Value = Obj->get(Field).extract<int64_t>();
if(std::strcmp(Field,"rssi")==0)
std::cout << "rssi:" << Value << std::endl;
} else {
std::cout << "Field: " << Field << std::endl;
}