Fixed presence payload parsing logic (IOT-406)
authorSachin Agrawal <sachin.agrawal@intel.com>
Mon, 23 Mar 2015 19:14:23 +0000 (12:14 -0700)
committerSashi Penta <sashi.kumar.penta@intel.com>
Mon, 23 Mar 2015 19:58:48 +0000 (19:58 +0000)
commitce2ba387d9172fa6fe079d5fd3190ec05c40f6f0
treedade25a512991402736e7144f8c33287fe664289
parent6d66f9f06cc830f7b378ab5c1d2de78383acc6e5
Fixed presence payload parsing logic (IOT-406)

Updated method parsePresencePayload to handle scenarios
when payload is not in the expected presence format.
Also added unit test to verify parsing functionality.

Change-Id: I47d995b8f49cc96805bf837ac2c2f77c1859da82
Signed-off-by: Sachin Agrawal <sachin.agrawal@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/538
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Erich Keane <erich.keane@intel.com>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
resource/csdk/stack/src/ocstack.c
resource/csdk/stack/test/stacktests.cpp