From: coderhyme Date: Wed, 23 Mar 2016 06:43:44 +0000 (-0700) Subject: [IOT-1208] fix for jira issue X-Git-Tag: 1.2.0+RC1~355^2^2~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=45837c22238e8a2714a1db0cf19b6e202895011e;p=platform%2Fupstream%2Fiotivity.git [IOT-1208] fix for jira issue It works as expected, server sample set sensor interface as its default interface. And the sensor interface does not support set request by the core spec. I feel server and client sample should work as pair, which means sample server needs to support set request. So sample server is modified. Change-Id: Ib2ff696c18ba5449300dff833d2dfdc7e2d7c8bb Signed-off-by: coderhyme Reviewed-on: https://gerrit.iotivity.org/gerrit/6209 Reviewed-by: Uze Choi Tested-by: Uze Choi --- diff --git a/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp b/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp index a8946d2..3c03da3 100755 --- a/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp +++ b/service/resource-encapsulation/examples/linux/SampleResourceServer.cpp @@ -124,7 +124,7 @@ void initServer(const std::string& resourceUri, const std::string& resourceType, g_resource = RCSResourceObject::Builder(resourceUri, resourceType, ACTUATOR_INTERFACE) .addInterface(CUSTOM_INTERFACE) .addInterface(SENSOR_INTERFACE) - .setDefaultInterface(SENSOR_INTERFACE) + .setDefaultInterface(BASELINE_INTERFACE) .setDiscoverable(true) .setObservable(true) .build();