-->
Page 1 of 1

nodemcu Lua http request

PostPosted: Thu May 25, 2017 2:07 pm
by ldd11
Hello

for controling my lights with a Vera box, I type in this url in a web browser : http://192.168.1.xx:3480/data_request?i ... getValue=1

and the light goes ON
I don't need to have a answer from the box

How can I do the same thing from a LUA script with my Modemcu ESP8266 please ?

thank you

Re: nodemcu Lua http request

PostPosted: Thu May 25, 2017 8:46 pm
by atexit8
I found a webpage that takes about using JQuery to send a HTTP GET.
http://www.allaboutee.com/2015/01/02/esp8266-arduino-led-control-from-webpage/

Instead of download jQuery, I included it from a CDN (Content Data Network) per the instructions at https://www.w3schools.com/jquery/jquery_get_started.asp

You may also find the information about how to set up the ESP module useful though it may have to be modified for the NodeMCU Lua.