-->
Page 1 of 1

esp 8266 web server

PostPosted: Tue Oct 18, 2016 5:57 am
by Vu Truong
I have to follow the instructions of the article :
http://allaboutee.com/2014/12/30/esp826 ... webserver/
but did not know how to display the status of the leds on the web server on esp 8266 for the lED is turned on or not, you can help me? :?:

Re: esp 8266 web server

PostPosted: Sun Oct 23, 2016 6:39 pm
by swilson
It would more than likely require a full page reload or using Ajax. You could check for an change of state on the pins and update the page with the change. Ajax does it without a full page reload For more on Ajax just do a search for esp8266 ajax or arduino ajax.

See here for state change detection - https://www.arduino.cc/en/Tutorial/StateChangeDetection