O'Reilly logo

Arduino Networking by Marco Schwartz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required