Folks using sample apps get confused with error-prone code in samples. Fixing few...
authorSachin Agrawal <sachin.agrawal@intel.com>
Fri, 22 Aug 2014 09:32:59 +0000 (02:32 -0700)
committerSachin Agrawal <sachin.agrawal@intel.com>
Fri, 22 Aug 2014 09:32:59 +0000 (02:32 -0700)
commit50cf353dee1ce3204c4377ff3bb51c4d1ba3a58c
treecbf59b59b51ff728bc95399de4e570142b9e1a3a
parent755de93b9aebada263abdb4c918c1f9cadbb0043
Folks using sample apps get confused with error-prone code in samples. Fixing few issues here:
1. EH should copy the payload and not modify the payload pointer location.
2. EH should check the length of response payload before copying data into it.
3. Fixed getResult.
4. Updated payload to reflect our modified JSON format.

Change-Id: I9847742c01c8db203b4fa74b5397136414f86994
csdk/stack/samples/arduino/SimpleClientServer/ocserver/ocserver.cpp