use database.sql to create the DB
mysql -u root -p < database.sqlhttps://kinsta.com/es/blog/gmail-smtp-servidor/
https://aruljohn.com/blog/php-send-email/
- Create a file named
config.iniin this folder, with the following content:
[database]
server = "localhost";
database_name = "db_esp32";
// replace with database username
database_username = "root";
// replace with database user password
database_password = "secret";
[mail]
mail_host = "smtp.gmail.com"
mail_username = "user@gmail.com"
mail_password = "secret"
mail_port = 465composer install- Run
php -S localhost:8080- Send an HTTP request to store data into DB
curl -X POST "http://localhost:8080/" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "api_key=tPmAT5Ab3j7F9&sensor_names=MAX3010&temperature=14.75&heart_rate=49.54&oxygen_saturation=1005.14"- To test this project, you can also reuse the postman collection in docs/ESP32.postman_collection.json