diff --git a/hueplusplus/HttpHandler.cpp b/hueplusplus/HttpHandler.cpp old mode 100644 new mode 100755 index 31dc916..bd9f0e5 --- a/hueplusplus/HttpHandler.cpp +++ b/hueplusplus/HttpHandler.cpp @@ -270,8 +270,8 @@ Json::Value HttpHandler::GETJson(std::string uri, const Json::Value& body, const std::unique_ptr reader = std::unique_ptr(builder.newCharReader()); if (!reader->parse(response.c_str(), response.c_str() + response.length(), &result, &error)) { - std::cout << "Error while parsing JSON in function SendRequest() of HueLight: " << error << std::endl; - throw(std::runtime_error("Error while parsing JSON in function SendRequest() of HueLight")); + std::cout << "Error while parsing JSON in function GETJson() of HttpHandler: " << error << std::endl; + throw(std::runtime_error("Error while parsing JSON in function GETJson() of HttpHandler")); } return result; } @@ -287,8 +287,8 @@ Json::Value HttpHandler::POSTJson(std::string uri, const Json::Value& body, cons std::unique_ptr reader = std::unique_ptr(builder.newCharReader()); if (!reader->parse(response.c_str(), response.c_str() + response.length(), &result, &error)) { - std::cout << "Error while parsing JSON in function SendRequest() of HueLight: " << error << std::endl; - throw(std::runtime_error("Error while parsing JSON in function SendRequest() of HueLight")); + std::cout << "Error while parsing JSON in function POSTJson() of HttpHandler: " << error << std::endl; + throw(std::runtime_error("Error while parsing JSON in function POSTJson() of HttpHandler")); } return result; } @@ -304,8 +304,8 @@ Json::Value HttpHandler::PUTJson(std::string uri, const Json::Value& body, const std::unique_ptr reader = std::unique_ptr(builder.newCharReader()); if (!reader->parse(response.c_str(), response.c_str() + response.length(), &result, &error)) { - std::cout << "Error while parsing JSON in function SendRequest() of HueLight: " << error << std::endl; - throw(std::runtime_error("Error while parsing JSON in function SendRequest() of HueLight")); + std::cout << "Error while parsing JSON in function PUTJson() of HttpHandler: " << error << std::endl; + throw(std::runtime_error("Error while parsing JSON in function PUTJson() of HttpHandler")); } return result; } diff --git a/hueplusplus/Hue.cpp b/hueplusplus/Hue.cpp old mode 100644 new mode 100755 index f7b0bae..a2b9c3e --- a/hueplusplus/Hue.cpp +++ b/hueplusplus/Hue.cpp @@ -291,6 +291,6 @@ void Hue::refreshState() } else { - std::cout << "Answer in refreshState() of HttpHandler().sendGetHTTPBody() is not expected!\n"; + std::cout << "Answer in Hue::refreshState of HttpHandler().GETJson(...) is not expected!\n"; } } diff --git a/hueplusplus/HueLight.cpp b/hueplusplus/HueLight.cpp old mode 100644 new mode 100755 index c9c102c..c9c102c --- a/hueplusplus/HueLight.cpp +++ b/hueplusplus/HueLight.cpp diff --git a/hueplusplus/include/HttpHandler.h b/hueplusplus/include/HttpHandler.h old mode 100644 new mode 100755 index 88a16f9..88a16f9 --- a/hueplusplus/include/HttpHandler.h +++ b/hueplusplus/include/HttpHandler.h