~RequestObject() = default;
void invokeRequest(RemoteObjectPtr remoteObject, RequestMethod method,
- const RCSRequest & pRequest, RCSResourceAttributes & resourceAttibutes);
+ RCSResourceAttributes & resourceAttibutes);
private:
void setRequestCB(const RCSResourceAttributes & returnedAttributes,
return ++oc;
}
-void onObserve(const HeaderOptions &headerOption , const OCRepresentation &rep , const int &eCode,
+void onObserve(const HeaderOptions &/*headerOption*/, const OCRepresentation &rep , const int &eCode,
const int &sequenceNumber)
{
std::cout << "onObserve" << std::endl;
}
}
-void onPut(const HeaderOptions &headerOption, const OCRepresentation &rep, const int eCode)
+void onPut(const HeaderOptions &/*headerOption*/, const OCRepresentation &rep, const int eCode)
{
try
{
}
//callback hadnler on DELETE request
-void onDelete(const HeaderOptions &headerOption , const int eCode)
+void onDelete(const HeaderOptions &/*headerOption*/, const int eCode)
{
try
{
}
// callback handler on GET request
-void onGet(const HeaderOptions &headerOption , const OCRepresentation &rep , const int eCode)
+void onGet(const HeaderOptions &/*headerOption*/, const OCRepresentation &rep , const int eCode)
{
std::cout << "GET request was successful1" << std::endl;
if (eCode == SUCCESS_RESPONSE)
std::cout << std::endl;
}
-int main(int argc , char *argv[])
+int main()
{
int in;
std::cout << "Invalid input, please try again" << std::endl;
break;
}
- }catch(OCException e) {
+ }catch(OCException & e) {
std::cout<< "Caught OCException [Code: "<<e.code()<<" Reason: "<<e.reason()<<std::endl;
}
}