- Thu Nov 05, 2015 1:30 pm
#33158
Best way ... there are many ways and every is best in some sort
For me easy way is to publish MQTT message from esp and then to read them from SQL server and save to SQL, because I already have MQTT broker and so on.
If you have just SQL and WEB server and have PHP knowledge may be best way is to open socket to WEB server from esp and make GET/POST with data. Then handle request with PHP ($_GET/$_POST) and save data to SQL. If data is short (no more than 2K) you can use GET. If not use POST.
Keep in mind that esp PWM is limited to 500 Hz (If I'm not mistaken). So if you want to read signals from TV remote or something like that you have to write your own IR routine and emulate PWM.
I can't see where JS can be used on this scenario, but ... you never know
Can't help with LUA. Never touched it.