Lesson 11 Building a Webserver on ESP32

Аватар автора
Реактивный Архив
In this lesson I will show you how to build an asynchronous web server with the ESP32 board to control its outputs. The board will be programmed using Arduino IDE, and we’ll use the ESPAsyncWebServer library. This library provides an easy way to build an asynchronous web server. Building an asynchronous web server has several advantages as mentioned in the library GitHub page, such as:  “Handle more than one connection at the same time”;  “When you send the response, you are immediately ready to handle other connections while the server is taking care of sending the response in the background”;  “Simple template processing engine to handle templates”; These libraries aren’t available to install through the Arduino Library Manager, so you need to copy the library files to the Arduino Installation Libraries folder. Alternatively, in your Arduino IDE, you can go to Sketch Include Library Add .zip Library and select the libraries you’ve just downloaded. In this lesson we’ll control three outputs. As an example, we’ll control LEDs using 3x LEDs and 3x 220 Ohm Resistor You can pick up the code from my Github, to give you a high level view of how the code works as a Webserver in ESP32 The web server contains one heading “ESP Web Server” and three buttons (toggle switches) to control three outputs. Each slider button has a label indicating the GPIO output pin. You can easily remove/add more outputs. When the slider is red, it means the output is on (its state is...

0/0


0/0

0/0

0/0