Fix C/C++ samples interoperability
authorMandeep Shetty <mandeep.shetty@intel.com>
Fri, 13 Feb 2015 22:38:27 +0000 (14:38 -0800)
committerSudarshan Prasad <sudarshan.prasad@intel.com>
Thu, 19 Feb 2015 03:51:52 +0000 (03:51 +0000)
commitb99d2f18677ef7d54880a39294d9a3bae14efe54
tree580245a6b7f9f84b33e877e7fbf913fda131ddd6
parent672602efbe39a12a6b4177e8ab90acb351931f6c
Fix C/C++ samples interoperability

This fixes IOT-130

Made the "state" of light resource consistent across samples to be true/false instead of "on"/"off".
Fixed JSON payload parsing in occserver to fix seg fault on PUT request.

Change-Id: I4983c7ec20a274d0ae24f013cd7b7ec95c5815a6
Signed-off-by: Mandeep Shetty <mandeep.shetty@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/345
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Sashi Penta <sashi.kumar.penta@intel.com>
Reviewed-by: Sudarshan Prasad <sudarshan.prasad@intel.com>
resource/csdk/stack/samples/arduino/SimpleClientServer/ocserver/ocserver.cpp
resource/csdk/stack/samples/linux/SimpleClientServer/occlient.cpp
resource/csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp
resource/examples/simpleclient.cpp