Porting TBStack Functionality to Arduino. The following changes were made
authorJoseph Morrow <joseph.l.morrow@intel.com>
Fri, 15 Aug 2014 20:49:36 +0000 (16:49 -0400)
committerJoseph Morrow <joseph.l.morrow@intel.com>
Fri, 15 Aug 2014 20:49:36 +0000 (16:49 -0400)
commit2cd5f3cd0b681771d12440a279fd7bb6ff1d7e5c
treeb29dde581f88ec981a92aeb9417818578dc51c31
parent3d949cedaceb985ba49dd65164b786f29cba0f89
Porting TBStack Functionality to Arduino. The following changes were made
for this:

Added PCF() wrappers around const char* strings to store pre-defined debug
statements in flash, rather than RAM. This only 'affects' Arduino. It has
no affect on linux.

Removed erroneous/un-wanted #include headers from the public TB Stack API

Removed #include ocrandom.h as it was/is unneeded by ISVs.

Updated makefiles to be more friendly between Linux Vs.
Arduino builds (i.e. made both build without a hitch).

Cleaned up warnings that AVR-GCC marked as warnings that regular 'ol GCC
 did not.  Most notably line 328 or 329 "OCStopCoAP()" is being called
with a parameter. OCStopCoAP does not take ANY parameters.

Fixed bug with Arduino devices not retrieving correct IP address structs
from Linux devices (i.e. OCDevAddr needed to be #pragma packed).

Change-Id: Ided8d61ba647889d7a52fa7a4477ca67944b0fa0
28 files changed:
csdk/libcoap-4.1.1/address.h
csdk/libcoap-4.1.1/coap.h
csdk/libcoap-4.1.1/examples/server.c
csdk/libcoap-4.1.1/makefile
csdk/logger/include/logger.h
csdk/logger/src/logger.c
csdk/makefile
csdk/occoap/include/occoaphelper.h
csdk/occoap/include/occoaptoken.h
csdk/occoap/src/occoap.c
csdk/occoap/src/occoaphelper.c
csdk/ocsocket/include/ocsocket.h
csdk/ocsocket/src/ocsocket_arduino.cpp
csdk/ocsocket/test/arduino/makefile
csdk/stack/include/internal/ocstackinternal.h
csdk/stack/include/ocstack.h
csdk/stack/samples/SimpleClientServer/common.cpp [deleted file]
csdk/stack/samples/SimpleClientServer/makefile [deleted file]
csdk/stack/samples/SimpleClientServer/occlient.cpp [deleted file]
csdk/stack/samples/SimpleClientServer/ocserver.cpp [deleted file]
csdk/stack/samples/linux/SimpleClientServer/common.cpp [new file with mode: 0644]
csdk/stack/samples/linux/SimpleClientServer/makefile [new file with mode: 0644]
csdk/stack/samples/linux/SimpleClientServer/occlient.cpp [new file with mode: 0644]
csdk/stack/samples/linux/SimpleClientServer/ocserver.cpp [new file with mode: 0644]
csdk/stack/src/ocobserve.c
csdk/stack/src/ocresource.c
csdk/stack/src/ocserverrequest.c
csdk/stack/src/ocstack.c