Reader small image

You're reading from  ESP8266 Internet of Things Cookbook

Product typeBook
Published inApr 2017
PublisherPackt
ISBN-139781787288102
Edition1st Edition
Tools
Concepts
Right arrow
Author (1)
Marco Schwartz
Marco Schwartz
author image
Marco Schwartz

Marco Schwartz is an electrical engineer, entrepreneur, and blogger. He has a master's degree in electrical engineering and computer science from Supélec, France, and a master's degree in micro engineering from the Ecole Polytechnique Fédérale de Lausanne (EPFL), Switzerland. He has more than five years' experience working in the domain of electrical engineering. Marco's interests center around electronics, home automation, the Arduino and Raspberry Pi platforms, open source hardware projects, and 3D printing. He has several websites about the Arduino, including the Open Home Automation website, which is dedicated to building home automation systems using open source hardware. Marco has written another book on home automation and the Arduino, called Home Automation With Arduino: Automate Your Home Using Open-source Hardware. He has also written a book on how to build Internet of Things projects with the Arduino, called Internet of Things with the Arduino Yun, by Packt Publishing.
Read more about Marco Schwartz

Right arrow

Automated M2M with IFTTT


In this recipe, we will look at how to use IFTTT for your M2M projects. To do so, we will use IFTTT to send data from one ESP8266 board to another. This is going to be facilitated by the IFTTT maker channel and an MQTT broker. We will use the Adafruit IO MQTT broker in this recipe.

Getting ready

You will need the following hardware components for this project:

  • Two ESP8266 boards

  • Two USB cables

  • 220 Ω resistor

  • LED

  • Momentary Push button

  • 10 kΩ resistor

The setup will resemble the one in Basic local machine to machine interaction of this chapter. We will have one ESP8266 board setup with a Push button input and the other with an LED output.

Install the Adafruit MQTT library. To do that, search for adafruit mqtt in the libraries manager and select the first result:

You will also need an IFTTT account at https://ifttt.com and an Adafruit IO account at https://io.adafruit.com/. You can refer back to Chapter 6, Interacting with Web Services for details on how to use IFTTT.

How to do...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
ESP8266 Internet of Things Cookbook
Published in: Apr 2017Publisher: PacktISBN-13: 9781787288102

Author (1)

author image
Marco Schwartz

Marco Schwartz is an electrical engineer, entrepreneur, and blogger. He has a master's degree in electrical engineering and computer science from Supélec, France, and a master's degree in micro engineering from the Ecole Polytechnique Fédérale de Lausanne (EPFL), Switzerland. He has more than five years' experience working in the domain of electrical engineering. Marco's interests center around electronics, home automation, the Arduino and Raspberry Pi platforms, open source hardware projects, and 3D printing. He has several websites about the Arduino, including the Open Home Automation website, which is dedicated to building home automation systems using open source hardware. Marco has written another book on home automation and the Arduino, called Home Automation With Arduino: Automate Your Home Using Open-source Hardware. He has also written a book on how to build Internet of Things projects with the Arduino, called Internet of Things with the Arduino Yun, by Packt Publishing.
Read more about Marco Schwartz