Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Arduino Networking

You're reading from   Arduino Networking Connect your projects to the Web using the Arduino Ethernet library

Arrow left icon
Product type Paperback
Published in Aug 2014
Publisher
ISBN-13 9781783986866
Length 118 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Author (1):
Arrow left icon
Marco Schwartz Marco Schwartz
Author Profile Icon Marco Schwartz
Marco Schwartz
Arrow right icon
View More author details
Toc

Logging data in a spreadsheet


After finishing the configuration of our device on the Temboo website, we downloaded a bunch of files from Temboo. However, the Arduino file that was downloaded is for a generic sensor. In this section, we are going to adapt this file for our own needs and see the details of how the code works.

Note

You will need to insert your own TembooAccount.h file in the same folder as the Arduino file so that the code can work.

The main Arduino sketch for this section starts by including all the libraries that are required for the project to work with Temboo. Note that we will also insert the DHT library. Add the following libraries in the code:

#include <SPI.h>
#include <Dhcp.h>
#include <Dns.h>
#include <Ethernet.h>
#include <EthernetClient.h>
#include <Temboo.h>
#include "TembooAccount.h"
#include "DHT.h"

We also define the pin on which the DHT sensor is connected and the type of the sensor:

#define DHTPIN 7
#define DHTTYPEDHT11

Then, we...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime