diff --git a/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp b/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp index 8ed4381..2ec9c15 100644 --- a/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp +++ b/src/RESTAPI/RESTAPI_board_timepoint_handler.cpp @@ -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); } } \ No newline at end of file diff --git a/src/framework/MicroService.h b/src/framework/MicroService.h index a638d9a..b66d056 100644 --- a/src/framework/MicroService.h +++ b/src/framework/MicroService.h @@ -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; } }