Android Base API merge to master
[platform/upstream/iotivity.git] / resource / csdk / connectivity / build / arduino / README.txt
1 BUILDING for ARDUINOMEGA:
2 ========================================
3 PREREQ: Arduino MUST be installed in the machine where we compile. Refer to Arduino_Setup_README file for help.
4
5 1) Go to "connectivity\build\arduino" directory, Open Makefile and change ARDUINO_PORT according to the PORT selected in ARDUINO IDE.
6 2) BUILD : Go to "connectivity\build" directory. To build for a specific TRANSPORT [ETHERNET,BLE,WIFI], use the following command :
7         sudo make PLATFORM=arduinomega TRANSPORT=<ETHERNET/BLE/WIFI> ARDUINO_DIR = <PATH_TO_ARDUINO_INSTALL_DIR>/arduino-1.5.x
8         P.S : For PATH_TO_ARDUINO_INSTALL_DIR value refer Arduino_Setup_README.txt file.
9
10 Flashing Interface APIs for ARDUINOMEGA:
11 ========================================
12 Precondition: Connect Arduino Mega Board to Linux PC. Open Arduino IDE and select corresponding connected PORT
13 1) To Install, connect the ArduinoMega Board with corresponding Shields to Linux PC.
14 2) Perform sudo make install PLATFORM=arduinomega TRANSPORT=BLE
15    It will flash BLE Transport Adaptor in Arduino Board. Similarly, TRANSPORT can be changed to ETHERNET, BLE, WIFI etc..
16
17 To Run Adapter code in ARDUINOMEGA Board:
18 ========================================
19 PreCondition: Flash the executable in ARDUINO MEGA BOARD. Follow above Step(Flashing Interface APIs for ARDUINOMEGA)
20 1) Open Serial Monitor in Arduino IDE. It will execute the flashed binary and logs will be available in serial Monitor under BaudRate(115200)