Skip to content
Using the NodeMCU to send switch values to MySQL table
PHP Other
  1. PHP 61.2%
  2. Other 38.8%
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

About NodeMCU-MySQL

Uses the NodeMCU to insert two switch values into a MySQL database.



PHP code for getting the values from the NodeMCU as well as displaying previous entries on the webpage.


NodeMCU code (using the Arduino language and IDE) for "sending" the values to the MySQL database. It does this by accessing a URL that includes the switch values as parameters which the PHP GETs. (Tutorial for PHP GET method:

My original project

I was trying to make a system to monitor my garage door to tell me whether it's open or not. I HAD TROUBLE WITH THE NOEDMCU DEEP SLEEP so keep that in mind if you decide to use my code here.

See the progress updates on my blog:

You can’t perform that action at this time.