Adding band to SSIDTP

This commit is contained in:
stephb9959
2022-03-24 11:04:35 -07:00
parent 11ed27b870
commit 917582ff56
2 changed files with 4 additions and 1 deletions

View File

@@ -138,11 +138,12 @@ namespace OpenWifi {
Answer.set("points",Outer);
static int f=0;
/* static int f=0;
std::ostringstream OO;
Answer.stringify(OO);
std::ofstream of("msg"+std::to_string(f++)+".json", std::ios_base::trunc );
of << OO.str();
*/
return ReturnObject(Answer);
}
}

View File

@@ -384,6 +384,8 @@ 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);
} else {
std::cout << "Field: " << Field << std::endl;
}
}