Removed the OCPayloadType from the payload
authorErich Keane <erich.keane@intel.com>
Thu, 10 Sep 2015 21:51:32 +0000 (14:51 -0700)
committerPatrick Lankswert <patrick.lankswert@intel.com>
Wed, 16 Sep 2015 19:34:14 +0000 (19:34 +0000)
commitfd6ab37e8e2b1da6017177760cb786f4bf3989a3
treef8f8eca518cdc64f0f301fbcf8009050e9b776dc
parentf7c769813cc0596e1e7ee5cecccc6a0b000e1f35
Removed the OCPayloadType from the payload

Previously, the CBOR container included the type of the message to make
parsing of the CBOR items easier.  This is unfortunately against the
spec, so this patch removes it and requires the caller to ensure that
the expected message type is sent.  Incorrectly formatted messages will
result in the message not passed back via the callback.

Change-Id: If1ca9eed65b5274239b670e8a2bd6cadce763c19
Signed-off-by: Erich Keane <erich.keane@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/2482
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Patrick Lankswert <patrick.lankswert@intel.com>
resource/csdk/stack/include/internal/ocpayloadcbor.h
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/csdk/stack/src/ocserverrequest.c
resource/csdk/stack/src/ocstack.c