SQL database access example for esp-idf
SQL database access example for esp-idf. You can access MySQL/PostgreSQL on the server over the network. Use this as PHP script of WEB server.
Install php-crud-api according to the following: https://github.com/nopnop2002/esp-idf-sql-client/tree/master/mysql
Install php-crud-api according to the following: https://github.com/nopnop2002/esp-idf-sql-client/tree/master/pgsql
ESP-IDF V5.x.
git clone https://github.com/nopnop2002/esp-idf-sql-client
cd esp-idf-sql-client/
idf.py menuconfig
idf.py flash monitor
You have to set this config value with menuconfig.
I (7369) HTTP: -----------------------------------------
I (7379) HTTP: 1 1 1 blog started
I (7379) HTTP: 2 1 2 It works!
I (7379) HTTP: -----------------------------------------
I (18249) HTTP: -----------------------------------------
I (18249) HTTP: 2 1 2 It works!
I (18249) HTTP: -----------------------------------------
I (26519) HTTP: -----------------------------------------
I (26519) HTTP: 3 1 3 Hello World
I (26529) HTTP: -----------------------------------------
I (37739) HTTP: -----------------------------------------
I (37749) HTTP: 3 1 3 Hello Japan
I (37749) HTTP: -----------------------------------------
I (47959) HTTP: -----------------------------------------
I (47959) HTTP: 1 1 1 blog started
I (47969) HTTP: 2 1 2 It works!
I (47969) HTTP: -----------------------------------------