X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=service%2Fresource-container%2Fexamples%2FContainerSampleClient.cpp;h=ef26a7e94caaa8a2253713a27d410608844e2427;hb=8638ada6958174f8e6c1b570ff9f4c1209064442;hp=e7ce3f3711fc53fe59d3043edab8a9f7e816fd58;hpb=bc7acf98099e5bad6d5f70d849c91b962cd3e401;p=platform%2Fupstream%2Fiotivity.git diff --git a/service/resource-container/examples/ContainerSampleClient.cpp b/service/resource-container/examples/ContainerSampleClient.cpp index e7ce3f3..ef26a7e 100644 --- a/service/resource-container/examples/ContainerSampleClient.cpp +++ b/service/resource-container/examples/ContainerSampleClient.cpp @@ -289,7 +289,7 @@ void putLightRepresentation(std::shared_ptr resource) // Invoke resource's put API with rep, query map and the callback parameter - resource->put(rep, QueryParamsMap(), &onPut); + resource->post(rep, QueryParamsMap(), &onPut); } } @@ -314,7 +314,7 @@ void onGet(const HeaderOptions &headerOptions, const OCRepresentation &rep, cons std::cout << "\tcolor: " << mylight.m_color << std::endl; std::cout << "\tdim: " << mylight.m_dim << std::endl; - putLightRepresentation(curResource); + postLightRepresentation(curResource); } else {