displayed on the serial monitor. The list of networks is
updated every five seconds.
4. WiFi WebServer — shows how to use the ESP8266
as an HTTP type server. By locally accessing this web
server with a browser, an LED connected to the ESP8266
can be toggled off and on. See the example sketch for
Many of these example programs/sketches must be
edited before running as you must enter the SSID of your
wireless network along with your network's password.
Without this information, the ESP8266 will not be able to
connect to your wireless network and the example
programs will fail.
You may be wondering how much of the Arduino
software environment has been ported to the ESP8266
and, in truth, the answer is quite a lot. A list of what is
working is available at https://github.com/
esp8266/Arduino. This list is definitive as these are the
people who did/are doing the Arduino port.
Using the ESP8266 to control an LED or some other
device on your local area wireless network is cool but
somewhat limiting. What if you want to control your
device from anywhere in the world instead? There are
multiple ways of doing this — some of which require
configuring your modem/router to forward messages
through your firewall, opening up the possibility of
security breeches. Nathan Kennedy of
Kennedy Technology.com has come up with a better idea
that he calls Teleduino.
Teleduino is designed primarily for use with an
Arduino with a wired Ethernet shield; there are versions
available for Uno and Mega based boards. I was interested
to see if I could port some of the Teleduino functionality
onto the ESP8266 as an experiment, and with Nathan's
help I did so. Go to www.teleduino.org for the details. If
you are interested in the full Teleduino functionality on the
ESP8266, you will have to wait for Nathan to port the
complete code base. If, however, you want to experiment
yourself, you can grab my code ( TeleduinoClient.ino) from
the article link.
To use the Teleduino code, you must first go to
www.teleduino.org/tools/request-key and request an API
key. A key will be emailed to you after you provide your
name and email address. A key is a long string of hex
46 October 2015