[IOT-914] Change format of the device id as text string
authorHabib Virji <habib.virji@samsung.com>
Thu, 10 Mar 2016 17:59:51 +0000 (17:59 +0000)
committerHabib Virji <habib.virji@samsung.com>
Fri, 11 Mar 2016 19:05:35 +0000 (19:05 +0000)
commitd96fb8bee5a4895962f4b8fce8fee0f314bcce3b
treecf2332185ec1c84511f65bf3bde07d7d085c2eb9
parent7a893187456a05110f32f730695fa3cf3c58904e
[IOT-914] Change format of the device id as text string

DI field was being sent as a byte string over ther wire.

This patch update it to be sent as a string.

ocpayloadparse.c can handle both byte string and text string.
But ocpayloadconvert.c will be sending in text string.

Jira Issue: IOT-914
Signed-off-by: Habib Virji <habib.virji@samsung.com>
Change-Id: I049bf4cff5f2b390e589eb5cf55966e8034838b1
Reviewed-on: https://gerrit.iotivity.org/gerrit/5691
Reviewed-by: Dwarkaprasad Dayama <dwarka.dayama@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
12 files changed:
resource/csdk/stack/include/internal/ocstackinternal.h
resource/csdk/stack/include/ocpayload.h
resource/csdk/stack/include/octypes.h
resource/csdk/stack/include/payload_logging.h
resource/csdk/stack/src/ocpayload.c
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/csdk/stack/src/ocresource.c
resource/csdk/stack/src/ocstack.c
resource/include/OCSerialization.h
resource/src/OCRepresentation.cpp
resource/unittests/OCRepresentationEncodingTest.cpp