Search icon CANCEL
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
Developing IoT Projects with ESP32

You're reading from   Developing IoT Projects with ESP32 Automate your home or business with inexpensive Wi-Fi devices

Arrow left icon
Product type Paperback
Published in Sep 2021
Publisher Packt
ISBN-13 9781838641160
Length 474 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Vedat Ozan Oner Vedat Ozan Oner
Author Profile Icon Vedat Ozan Oner
Vedat Ozan Oner
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Preface 1. Section 1: Using ESP32
2. Chapter 1: Getting Started with ESP32 FREE CHAPTER 3. Chapter 2: Talking to the Earth – Sensors and Actuators 4. Chapter 3: Impressive Outputs with Displays 5. Chapter 4: A Deep Dive into the Advanced Features 6. Chapter 5: Practice – Multisensor for Your Room 7. Section 2: Local Network Communication
8. Chapter 6: A Good Old Friend – Wi-Fi 9. Chapter 7: Security First! 10. Chapter 8: I Can Speak BLE 11. Chapter 9: Practice – Making Your Home Smart 12. Section 3: Cloud Communication
13. Chapter 10: No Cloud, No IoT – Cloud Platforms and Services 14. Chapter 11: Connectivity Is Never Enough – Third-Party Integrations 15. Chapter 12: Practice – A Voice-Controlled Smart Fan 16. Other Books You May Enjoy

Defining rules with IFTTT

IFTTT is an online rule engine for any type of application, including IoT projects. We basically define a trigger (if this) and an action (then that). In this example, we will create a webhook on IFTTT, where our ESP32 device publishes temperature readings, and the IFTTT service will record the incoming readings on a Google spreadsheet. As hardware, we simply connect a DHT11 sensor to GPIO17 of the ESP32 devkit. Let's start by defining a rule on IFTTT first.

Preparing the rule

There are several tasks that we need to do at this stage. Here are the steps:

  1. Create a Google account if you don't have one and navigate to Google Drive at https://drive.google.com.
  2. Create a new folder named ifttt on Google Drive and a spreadsheet in it, temperature_log.
  3. Go to https://ifttt.com and log in. Then, navigate to https://ifttt.com/create to create a new applet. An applet is the IFTTT term for a rule. In the free plan, we can create up to three...
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 €18.99/month. Cancel anytime