In this project we set up the Arduino IDE to program the ESP32 module, and set up an asynchronous web server on the device to allow us to send commands and receive information over WIFI. The control interface is a simple app built using DroidScript.
and download the library as a zip file. Go back to the Arduino IDE and to Sketch, Include Library, Add .ZIP Library then find the zip file you just downloaded and click open.
This library starts an asynchronous web server on the Arduino that we can connect to over the WIFI network to tell the ESP32 to do things or read data back from the device.
Step 2: Arduino Webserver Code
Add the following code in the Arduino IDE and fill in your
own WIFI SSID and Password. Once complete, go to Tools, Board, and select ESP32 Dev Module (or whichever your board is). You can now plug your board into your PC using the micro USB cable and you should see it appear under Tools, Port. Select your board and port here and then upload the code.