Updated Makefiles and CMakeLists.txt to point to resource, not oic-resource
[platform/upstream/iotivity.git] / resource / csdk / stack / test / arduino / README
1 ArduinoStackTest.cpp contains several logger tests and can be used in an
2 Arduino sketch.
3
4 On Arduino, the logger outputs to the serial port using Serial.print.
5
6 Run a serial terminal program such as CuteCom at 115200,8,N,1 to view the
7 log outputs.
8
9 Note: to enable the logger for Arduino, TB_LOG should be defined in 
10 Properties|C/C++ Build|Settings|Tool Settings|AVR Compiler|Symbols
11 and
12 Properties|C/C++ Build|Settings|Tool Settings|AVR C++ Compiler|Symbols
13
14 Copy logger.c/h, occoap.c/h, and ocstack.c/h, and ocstackinternal.h to the Arduino project
15 Note: when building for Arduino, force the compiler to use avr-g++ to build logger.c, stack.c, and occoap.c
16
17 Note: when building for Arduino, several warnings are generated when trying to place strings in
18 PROGMEM
19 "warning: only initialized variables can be placed into program memory area"
20 This appears to be a known gcc bug - https://gcc.gnu.org/bugzilla/show_bug.cgi?id=34734
21