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

Controlling the relay from anywhere

In the last section of this chapter, we are going to take another approach. So far, we have a server running on our Arduino board, which can receive commands from any device on your local network. However, this is not convenient if you want to control a device from anywhere in the world. For example, you want to activate a lamp in your home at given intervals when you are away from your home.

To do so, we are going to use the Teleduino service, which allows you to do exactly that. The Arduino Ethernet shield will be constantly connected to this service, so you can transmit commands to the board from anywhere in the world if you have an Internet connection. We are going to build a new sketch for the Arduino board and then adapt the interface accordingly, so you can control the relay from anywhere in the world right from your web browser.

You first need to include the required libraries:

#include <EEPROM.h>
#include <Servo.h>
#include <Wire...
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