IOT-3010 Add OCPlatform::getResourceHandleAtUri 81/24381/5
authorGeorge Nash <george.nash@intel.com>
Mon, 12 Mar 2018 22:26:26 +0000 (15:26 -0700)
committerC.J. Collier <cjcollier@linuxfoundation.org>
Wed, 14 Mar 2018 23:03:58 +0000 (23:03 +0000)
commit82803f3bade1179b38abc646b27d3509ce22469e
tree05074d071eb237be959729e2a24271b6ad76f57a
parent82e8e829bd361d56f9893c31bd69c443463b24b3
IOT-3010 Add OCPlatform::getResourceHandleAtUri

This makes is possible to do things like get
the resource at `/oic/d` when to add the device
type.

This helps developers to avoid mixing C and C++
code in their projects.

Updated Cpp samples and unit test code to use
the new function.

Bug: https://jira.iotivity.org/browse/IOT-3010
Change-Id: I781081a5889807cea59ca5b569561da5d7d748e4
Signed-off-by: George Nash <george.nash@intel.com>
cloud/samples/client/airconditioner/aircon_controlee.cpp
resource/examples/devicediscoveryserver.cpp
resource/examples/simpleserver.cpp
resource/include/OCPlatform.h
resource/include/OCPlatform_impl.h
resource/src/OCPlatform.cpp
resource/src/OCPlatform_impl.cpp
resource/unittests/OCPlatformTest.cpp