[IOT-1116] Support heterogeneous array encoding.
authorTodd Malsbary <todd.malsbary@intel.com>
Tue, 25 Oct 2016 17:30:12 +0000 (10:30 -0700)
committerDan Mihai <Daniel.Mihai@microsoft.com>
Fri, 2 Dec 2016 03:18:57 +0000 (03:18 +0000)
commit9b493757c2057d4486fe5b473f3918d14704a519
treef5de4646c13df32c57fe4b12247b272b65a68b14
parent39a864fbfd804a7e89ac19baf22ce87c2b562f35
[IOT-1116] Support heterogeneous array encoding.

OCRepPayloads with values having only sequential integer names are
encoded/decoded as CBOR arrays of mixed types.

Change-Id: I2cdd87f9fb4b8473e00aefdd5bc5daa74941290f
Bug: https://jira.iotivity.org/browse/IOT-1116
Signed-off-by: Todd Malsbary <todd.malsbary@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/13661
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/ocpayloadparse.c
resource/csdk/stack/test/cbortests.cpp