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>
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();