Optimize stack for Arduino.
authorAbhishek Sharma <ce.abhishek@samsung.com>
Thu, 18 Aug 2016 06:06:00 +0000 (11:36 +0530)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 14 Sep 2016 13:53:33 +0000 (13:53 +0000)
commit3f2fa3bf855a6ae2cc70d0fcc737ed038ed88028
tree2f2bd2120eac07dfbef57ffe1321663d6544bbd8
parente5fc2597b1c750262fef4ddb3f9b443aa6591bf0
Optimize stack for Arduino.

In RI, headeroptions are maintained as array with default size as this macro.
A default 100 headeroptions are too high and results in a structure size of 3KB+.
Moreover any vendor will not add 100 CoAP options.
Also optimized few clonings.

Change-Id: I65860c44ec1ba0c3ef2800a88f27ecad0f483568
Signed-off-by: Abhishek Sharma <ce.abhishek@samsung.com>
Signed-off-by: Veeraj Khokale <veeraj.sk@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/10585
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
(cherry picked from commit a40e07bb0634b61a810ff1b0faf2c8b51f53cca2)
Reviewed-on: https://gerrit.iotivity.org/gerrit/11777
resource/csdk/connectivity/api/cacommon.h
resource/csdk/connectivity/src/bt_le_adapter/arduino/cableserver.cpp
resource/csdk/connectivity/src/bt_le_adapter/caleadapter.c
resource/csdk/connectivity/src/camessagehandler.c
resource/csdk/stack/include/ocstackconfig.h
resource/csdk/stack/src/ocpayloadconvert.c
resource/csdk/stack/src/rdpayload.c