From 6facf4ceef393eba81a0ccbf8bdf6e68738f96f2 Mon Sep 17 00:00:00 2001 From: coderhyme Date: Tue, 22 Mar 2016 23:43:44 -0700 Subject: [PATCH] [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 (cherry picked from commit 45837c22238e8a2714a1db0cf19b6e202895011e) Reviewed-on: https://gerrit.iotivity.org/gerrit/6247 Tested-by: jenkins-iotivity --- service/resource-encapsulation/examples/linux/SampleResourceServer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.7.4