Imported Upstream version 0.9.1
[platform/upstream/iotivity.git] / resource / csdk / stack / test / arduino / README
1 //---------------------------------------------------------------------
2 //  NOTICE - Transition to SCONS
3 //---------------------------------------------------------------------
4
5 The IoTivity build system is transitioning to SCONS. Although the 
6 makefiles are still available (until v1.0) and some developers are 
7 still using them, they are currently no longer supported. To learn more 
8 about building using SCONS see Readme.scons.txt in the repository root 
9 directory. The build steps used in continuous integration can be found
10 in auto_build.sh which is also in the the repository root directory.
11
12 //---------------------------------------------------------------------
13
14 ArduinoStackTest.cpp contains several logger tests and can be used in an
15 Arduino sketch.
16
17 On Arduino, the logger outputs to the serial port using Serial.print.
18
19 Run a serial terminal program such as CuteCom at 115200,8,N,1 to view the
20 log outputs.
21
22 Note: to enable the logger for Arduino, TB_LOG should be defined in 
23 Properties|C/C++ Build|Settings|Tool Settings|AVR Compiler|Symbols
24 and
25 Properties|C/C++ Build|Settings|Tool Settings|AVR C++ Compiler|Symbols
26
27 Copy logger.c/h and ocstack.c/h, and ocstackinternal.h to the Arduino project
28 Note: when building for Arduino, force the compiler to use avr-g++ to build logger.c, and stack.c.
29
30 Note: when building for Arduino, several warnings are generated when trying to place strings in
31 PROGMEM
32 "warning: only initialized variables can be placed into program memory area"
33 This appears to be a known gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
34
35