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 09:54:20 +0000 (09:54 +0000)
commita40e07bb0634b61a810ff1b0faf2c8b51f53cca2
treee621c4f01b44c5f4e5ed8e2499c78b453b207ded
parent3215cc92a7bccfe2dc2d6e2403b068fe38721554
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>
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