Controlling ESP32 from a mobile application

In this section, we will build a project to enable an ESP32 board to work with mobile devices. We can create Wi-Fi services on an ESP32 board to allow mobile devices to perform tasks on ESP32, such as turning on a lamp and turning off a motor. Our scenario is described in Figure 9.1. For a mobile device platform, we use the Android application.

The way in which a smart mobile project works can be seen in the following diagram:

Figure 9.1: A general design for a smart mobile project

We can control three lamps with an ESP32 board through relay modules as shown in the preceding diagram. For a simple ...

Get Internet of Things Projects with ESP32 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.