[IOT-1208] fix for jira issue
authorcoderhyme <jhyo.kim@samsung.com>
Wed, 23 Mar 2016 06:43:44 +0000 (23:43 -0700)
committerJungHo Kim <jhyo.kim@samsung.com>
Thu, 24 Mar 2016 05:32:58 +0000 (05:32 +0000)
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 <jhyo.kim@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/6209
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
(cherry picked from commit 45837c22238e8a2714a1db0cf19b6e202895011e)
Reviewed-on: https://gerrit.iotivity.org/gerrit/6247
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
service/resource-encapsulation/examples/linux/SampleResourceServer.cpp

index a8946d2..3c03da3 100755 (executable)
@@ -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();