Book Image

Internet of Things Projects with ESP32

By : Agus Kurniawan
Book Image

Internet of Things Projects with ESP32

By: Agus Kurniawan

Overview of this book

ESP32 is a low-cost MCU with integrated Wi-Fi and BLE. Various modules and development boards-based on ESP32 are available for building IoT applications easily. Wi-Fi and BLE are a common network stack in the Internet of Things application. These network modules can leverage your business and projects needs for cost-effective benefits. This book will serve as a fundamental guide for developing an ESP32 program. We will start with GPIO programming involving some sensor devices. Then we will study ESP32 development by building a number of IoT projects, such as weather stations, sensor loggers, smart homes, Wi-Fi cams and Wi-Fi wardriving. Lastly, we will enable ESP32 boards to execute interactions with mobile applications and cloud servers such as AWS. By the end of this book, you will be up and running with various IoT project-based ESP32 chip.
Table of Contents (12 chapters)

Making a mobile application and ESP32 interact

There are two ways to make an ESP32 board interact with a mobile application. First, we can use Wi-Fi and Bluetooth protocols to communicate between a mobile device and an ESP32 board. ESP32 has Bluetooth capability with its Bluetooth Low Energy (BLE) model. BLE is a version of Bluetooth technology that provides the same range with considerably lower power consumption.

If you want to make an ESP32 board interact with mobile devices, the mobile devices should have a BLE model as well. Otherwise, we cannot connect to an ESP32 board from a mobile device.

Wi-Fi is one of the most common protocols that mobile devices have. We will use Wi-Fi to facilitate the interaction of media between the mobile devices and the ESP32 board. We can use existing Wi-Fi, or our own Wi-Fi access point (AP), to control a device – control will be possible...