Added support for device discovery at oic/d.
authorMandeep Shetty <mandeep.shetty@intel.com>
Wed, 20 May 2015 22:33:17 +0000 (15:33 -0700)
committerErich Keane <erich.keane@intel.com>
Tue, 26 May 2015 21:49:59 +0000 (21:49 +0000)
commit1700ccbf8611b65e44a9a9c5fb02fb1d655c9c6b
treefbfbdbb989b3eab6ea24153500a0687ba7f65d6e
parent52fb76cbadc8c85daf5611271d5aa99756b97dfc
Added support for device discovery at oic/d.

Spec compliance task for adding support for device discovery.

Using a struct for Device info with the device name field that is
expected from the application. Generate device id of type UUID and
insert string representation of uuid in discovery responses.

Updated sample apps and unit tests to support changes.
Also updated android jni, OCDeviceInfo.java class and a test in
SmokeTest.java.

Change-Id: Ib2d676d2a504fb9ff177487899f74bd121dc1d59
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1057
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Joseph Morrow <joseph.l.morrow@intel.com>
Reviewed-by: Erich Keane <erich.keane@intel.com>
16 files changed:
android/android_api/base/jni/JniOcPlatform.cpp
android/android_api/base/src/androidTest/java/org/iotivity/base/SmokeTest.java
android/android_api/base/src/main/java/org/iotivity/base/OcDeviceInfo.java
android/android_api/base/src/main/java/org/iotivity/base/OcPlatform.java
resource/csdk/stack/include/internal/ocresourcehandler.h
resource/csdk/stack/include/octypes.h
resource/csdk/stack/samples/linux/SimpleClientServer/occlient.cpp
resource/csdk/stack/samples/linux/SimpleClientServer/occlient.h
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
resource/csdk/stack/src/ocresource.c
resource/csdk/stack/src/ocstack.c
resource/examples/devicediscoveryclient.cpp
resource/examples/devicediscoveryserver.cpp
resource/include/OCPlatform.h
resource/include/OCPlatform_impl.h
resource/unittests/OCPlatformTest.cpp