Skip to content

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.

Notifications You must be signed in to change notification settings

marMroc/ESP32_To_Databases_Control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ESP32_To_Databases_Control

To access the source ESP32 code, Click Here

📋 Index:

Summary:

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.

Components:

  • One DOIT ESP32 Board - ESP32-WROOM-32D
  • One Protoboard

Challenges:

Ensure that the sensor data is correctly formatted before sending the HTTP request, ensuring that the information is sent to the server properly.

Learnings:

  • 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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published