mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-01-23 13:03:01 +01:00
not really sure about these changes... added timeout/exceptions
git-svn-id: file:///afs/psi.ch/project/sls_det_software/svn/slsDetectorSoftware@800 951219d9-93cf-4727-9268-0efd64621fa3
This commit is contained in:
@@ -73,11 +73,11 @@ public:
|
||||
rest.init("localhost",8080);
|
||||
std::string answer;
|
||||
int code = rest.get_json("status", &answer);
|
||||
std::cout << answer << std::endl;
|
||||
std::cout << "Answer: " << answer << std::endl;
|
||||
|
||||
JsonBox::Value json_value;
|
||||
code = rest.get_json("status", &json_value);
|
||||
std::cout << "JSON " << json_value["status"] << std::endl;
|
||||
//JsonBox::Value json_value;
|
||||
//code = rest.get_json("status", &json_value);
|
||||
//std::cout << "JSON " << json_value["status"] << std::endl;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user