-->
Page 1 of 1

Connect NodeMCU Lua to Mysql server using mysql library

PostPosted: Sun Nov 29, 2015 6:41 am
by muthanaalalaki
Hi,
I am trying to insert some data to mysql database and use it for monitoring the temperature. I have done it with Ethernet and it works perfectly but I do not know how to do it using NodeMCU Lua!!
Any ideas?

Re: Connect NodeMCU Lua to Mysql server using mysql library

PostPosted: Sun Nov 29, 2015 5:14 pm
by eduperez
How did you exactly connect to the MySQL database before?

Re: Connect NodeMCU Lua to Mysql server using mysql library

PostPosted: Sun Nov 29, 2015 7:33 pm
by muthanaalalaki
I have used ethernet shield and mysql library

Re: Connect NodeMCU Lua to Mysql server using mysql library

PostPosted: Mon Nov 30, 2015 6:41 am
by eduperez
I would have never imagined that a MySQL library for Arduino could be developed, but it happens to exist! Sorry, I have no idea if such thing exists for LUA. I would program a PHP script, put it on a web server, and call it from the ESP, but that is dodging the question.