To access the source ESP32 code, Click Here
This project consists of building an ESP32 client that makes HTTP requests to a PHP script to insert data - which in this case are sensor readings - into an SQL database.
- One DOIT ESP32 Board - ESP32-WROOM-32D
- One Protoboard
Ensure that the sensor data is correctly formatted before sending the HTTP request, ensuring that the information is sent to the server properly.
- Establish a Wi-Fi connection using the WiFi.h library to connect the ESP32 to a Wi-Fi network.
- Perform an HTTP request using the HTTPClient.h library to send data to a web server.
- Format sensor data correctly before sending the HTTP request, ensuring that the information is sent to the server appropriately. This includes preparing the data in the required format for the POST request to the PHP server and validating the API key to ensure the security of received data.