Re: IOT example GPIO/ADC web client and web server
Posted: Fri Nov 28, 2014 6:30 pm
gerardwr wrote:I upload an intermediate source
Here is quick and dirty pdf file for the brave that want to experiment.
Good luck!
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
gerardwr wrote:I upload an intermediate source
gerardwr wrote:I upload an intermediate source, because I'm stuck with some HW problems (Often my ESP's will not Restart to the Lua prompt but only display rubbish in the terminal. By Resetting the ESP it generally comes alive after a few HW resets, but not anymore! I power it from an FTDI usb-serial adapter with a 33uF elco across the power terminals, I suspect that's the culprit)
In the upload is the latest webserver.lua to upload to init.lua. I continued with the version that was modified by alonewolfx2:
- some cleaning of the code
- javascript lines added by alonewolfx2 are commented out, don't need them now
- .html files are now presented below the header of the (debug) page between horizontal lines, for better appearance
- lua script lines embedded in html source iarerecognised, but NOT yet interpreted an NOT yet executed. File htmllua.html is such a file, can be used for testing. NOTE : these are the lines I was working on before my HW quit.
The latest version I could test looked like:
Hope to get my HW problems resolved tomorrow and continue the execution of the lua lines in the HTMl file. I currently have no clue IF and HOW I can get it done. I know there's a lua statement that executes a lua command in a file, so that's hopefully easy. Getting the result from this execution and send it to the browser is the challenge. Perhaps in hindsite it will look simple.
Tips for that, anyone??
Come on guys! The file was downloaded over 100+ times, but only a response from 1 or 2 guys. Don't let alonewolfx2 and me do all the work, step in!!
zeroday wrote:WOW, You guys are genius!
zeroday wrote:can a js lib from cdnjs.cloudflare.com be added? little experience in web program.
zeroday wrote:: the restart issue is much likely a power problem. replace it with a good one(>500mA maybe) usually fix that.