This repository was archived by the owner on Jun 25, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
How to for Arduino
Mark Chmarny edited this page Jan 30, 2014
·
14 revisions
- Ensure you have the latest SD card image
- Ensure you have the Arduino IDE (for Galileo) installed, the correct Serial/USB driver, and the correct COM port set. You should be able to download a simple sketch such as the "Blink" example and see the LED blink.
- Import the IoTkit Arduino library (instructions below).
- Open the IoTkitStoreCredentials example,change the username and password, and download it to the board. This should set the credentials. This will not need to be done again unless you replace or overwrite the SD card.
- Reset the board by pressing the "REBOOT" button (or remove and reinsert the power connector). This will enable the agent to use the new username and password parameters.
- Open the IoTkitSetDateTime example, modify the function parameters for the current UTC date and time and download it to the board. This will need to be done each time power is applied to the board unless a battery has been connected to the COIN header.
- Open the SimpleIoTkitExample and download it to the board.
- Confirm data is being sent to the broker. There are several ways to do this, including subscribing to the broker.
- Download the IoTkit.zip file from the Arduino directory
- From the Arduino IDE, select Sketch -> Import Library -> Add Library
- Select the zip file, click "open"
- You should see a message like: Library added to your libraries. Check "Import Library" menu.
- Select File -> Examples -> IoTkit -> SimpleIoTkitExample
- This should open a new sketch window with an example
- Ensure the agent is running on the Galileo
- Compile and Upload the sketch
- You should see a new measurements for: source: "temp-Sensor" measurement: "temp" value: 26.42