-->
Page 1 of 23

[DEVELOPMENT] IOT example GPIO/ADC web client and web server

PostPosted: Mon Nov 24, 2014 4:31 pm
by gerardwr
I already published this message in the now closed "examples" topic to facilitate further discussion.

IOT example:
- sends ADC value to a webserver every 3 seconds (needs connection to TOUT pin of ESP, not tested myself)
- sends GPIO value to a webserver at every GPIO level change (interrupt at every UP or DOWN flank)
- provides a webpage with some ESP data

Schermafbeelding 2014-11-24 om 17.43.30.png


Schermafbeelding 2014-11-24 om 17.37.48.png


Upload the file below to init.lua on the ESP, and reboot the ESP.
(2.54 KiB) Downloaded 1262 times


Latest updates:
(125.84 KiB) Downloaded 821 times

Re: IOT example GPIO/ADC web client and web server

PostPosted: Mon Nov 24, 2014 5:50 pm
by RichardS
Nice, thanks, in time we were going to try and pull out anything trapped! :o

Richard.

Re: IOT example GPIO/ADC web client and web server

PostPosted: Mon Nov 24, 2014 6:21 pm
by gerardwr
admin wrote:Nice, thanks, in time we were going to try and pull out anything trapped! :o

Richard.

Hi Richard,
The forum is growing fast, thanks for keeping the info accessible.
Gerard.

Re: IOT example GPIO/ADC web client and web server

PostPosted: Thu Nov 27, 2014 7:25 am
by gerardwr
Hi,
My example was downloaded almost 50 times, but without any response from the downloaders :?

I'm not here for personal glory, but would appreciate suggestions, either positieve OR critical.

I have extended the webserver part of the example. It now displays all files present on the ESP in a clickable link. Clicking on a .HTML file displays this file in the browser. Clicking on a .LUA file will execute LUA statements in it (in development). I'm still pondering on embedding LUA statements in a HTML file, like CGI.

Anyone interested in followups or have some suggestions.