Book Image

Intel Galileo Blueprints

By : Marco Schwartz
Book Image

Intel Galileo Blueprints

By: Marco Schwartz

Overview of this book

Table of Contents (19 chapters)
Intel Galileo Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
1
Setting Up the Galileo Board and the Development Environment
Index

Connecting the project to the cloud


Now, we want to connect the data to the cloud so that we can monitor the project remotely. Once we are able to do this, we can check whether our plants need watering and initiate the watering process, even if we're not home.

To do this, we will first connect to Dweet.io to store our data.

We already saw how to use Dweet.io in Chapter 6, Internet of Things with Intel Galileo. Dweet.io is, as they claimed, the "Twitter for social machines". It publishes and subscribes data to your computer or any electronic device that connects to it, and it's fast and easy to use. No need for sign ups!

Note

For more information about Dweet.io, you can visit the following link:

http://dweet.io/

What we need to do now is code the Arduino sketch. Here is the complete code for this part:

// Libraries
#include <Sensirion.h>
#include <SPI.h>
#include <Ethernet.h>

// MAC address
byte mac[] = {  0x98, 0x4F, 0xEE, 0x01, 0x90, 0xC5 };

// Ethernet client
EthernetClient...