{"id":16239616,"url":"https://github.com/nopnop2002/esp-idf-sql-client","last_synced_at":"2025-07-13T07:33:23.139Z","repository":{"id":108987869,"uuid":"231693596","full_name":"nopnop2002/esp-idf-sql-client","owner":"nopnop2002","description":"SQL database access example for esp-idf","archived":false,"fork":false,"pushed_at":"2025-02-16T18:14:46.000Z","size":60,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-03T04:41:36.677Z","etag":null,"topics":["db","dbms","esp-idf","esp32","mysql","postgresql","sql-query","sqlite-database"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nopnop2002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-04T01:47:23.000Z","updated_at":"2025-02-16T18:14:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e96f2756-2bb9-4857-93ba-47705ad1e915","html_url":"https://github.com/nopnop2002/esp-idf-sql-client","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nopnop2002/esp-idf-sql-client","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-sql-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-sql-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-sql-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-sql-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nopnop2002","download_url":"https://codeload.github.com/nopnop2002/esp-idf-sql-client/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nopnop2002%2Fesp-idf-sql-client/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265105654,"owners_count":23712180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["db","dbms","esp-idf","esp32","mysql","postgresql","sql-query","sqlite-database"],"created_at":"2024-10-10T13:44:23.127Z","updated_at":"2025-07-13T07:33:23.108Z","avatar_url":"https://github.com/nopnop2002.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esp-idf-sql-client\nSQL database access example for esp-idf.   \nYou can access MySQL/PostgreSQL on the server over the network.   \nUse [this](https://github.com/mevdschee/php-crud-api) as PHP script of WEB server.\n\n![Slide1](https://user-images.githubusercontent.com/6020549/160416973-7b9a5ec5-ec40-4ad2-9e58-3ba1001d2353.JPG)\n\n# Using MySQL\nInstall php-crud-api according to the following:   \nhttps://github.com/nopnop2002/esp-idf-sql-client/tree/master/mysql\n\n# Using PostgreSQL\nInstall php-crud-api according to the following:   \nhttps://github.com/nopnop2002/esp-idf-sql-client/tree/master/pgsql\n\n# Software requirements\nESP-IDF V5.0 or later.   \nESP-IDF V4.4 release branch reached EOL in July 2024.   \n\n# Installation   \n```\ngit clone https://github.com/nopnop2002/esp-idf-sql-client\ncd esp-idf-sql-client/\nidf.py menuconfig\nidf.py flash monitor\n```\n\n\n# Configuration   \nYou have to set this config value with menuconfig.   \n- CONFIG_ESP_WIFI_SSID   \nSSID of your wifi.\n- CONFIG_ESP_WIFI_PASSWORD   \nPASSWORD of your wifi.\n- CONFIG_ESP_MAXIMUM_RETRY   \nMaximum number of retries when connecting to wifi.\n- CONFIG_ESP_WEB_SERVER_IP   \nIP or mDNS of your WEB Server.\n- CONFIG_ESP_WEB_SERVER_PORT   \nPort number of your WEB Server.\n- CONFIG_ESP_PHP_PATH   \nPath of PHP Script,\n\n\n![menuconfig-1](https://user-images.githubusercontent.com/6020549/97793281-68114380-1c2d-11eb-9787-c8df218693ed.jpg)\n![menuconfig-2](https://user-images.githubusercontent.com/6020549/160365288-21f73e82-2d63-4d8e-94f0-d7a6aa03d818.jpg)\n\n\n# Read all data\n```\nI (7369) HTTP: -----------------------------------------\nI (7379) HTTP: 1        1       1       blog started\nI (7379) HTTP: 2        1       2       It works!\nI (7379) HTTP: -----------------------------------------\n```\n\n# Read by ID\n```\nI (18249) HTTP: -----------------------------------------\nI (18249) HTTP: 2       1       2       It works!\nI (18249) HTTP: -----------------------------------------\n```\n\n# Create new record\n```\nI (26519) HTTP: -----------------------------------------\nI (26519) HTTP: 3       1       3       Hello World\nI (26529) HTTP: -----------------------------------------\n```\n\n# Update a new record\n```\nI (37739) HTTP: -----------------------------------------\nI (37749) HTTP: 3       1       3       Hello Japan\nI (37749) HTTP: -----------------------------------------\n```\n\n# Delete a new record\n```\nI (47959) HTTP: -----------------------------------------\nI (47959) HTTP: 1       1       1       blog started\nI (47969) HTTP: 2       1       2       It works!\nI (47969) HTTP: -----------------------------------------\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fesp-idf-sql-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnopnop2002%2Fesp-idf-sql-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnopnop2002%2Fesp-idf-sql-client/lists"}