-->
Page 1 of 3

Simple Examples of webserver

PostPosted: Fri Apr 10, 2015 2:57 pm
by Jeroen Beemster
I have made some simple example on http://www.arduinesp.com to have quickstart using the ESP8266 using the Arduino IDE
Including the simple example blink http://www.arduinesp.com/blink
And a simplyfied example of wifiserver http://www.arduinesp.com/wifiwebserver
Image
Image
Have a look.

Re: Simple Examples of webserver

PostPosted: Fri Apr 10, 2015 3:22 pm
by RichardS
Can you do an example of LED(s) going on and off with radio buttons? check boxes? buttons?

People would love to see that also!

Richard.

Re: Simple Examples of webserver

PostPosted: Sat Apr 11, 2015 8:12 am
by gerardwr
admin wrote:Can you do an example of LED(s) going on and off with radio buttons? check boxes? buttons?


Richard.


Hi Richard,

Ivan has published an example Webserver that enables switching an LED with HTML Radio Buttons and a SUBMIT button here:
https://gist.github.com/igrr/3b66292cf8708770f76b

Schermafbeelding 2015-04-11 om 15.07.09.png

Re: Simple Examples of webserver

PostPosted: Wed Apr 15, 2015 4:36 am
by duncan_a
Hi Guys (and Gals)

Luca Dentella did a really neat On/Off example for the ENC28J60 Ethernet module which 'pulls' the graphic of the button from his website as it's required (see http://www.lucadentella.it/en/2012/11/1 ... arduino-9/).

I'm sure this can be 'ported' to the ESP8266/Arduino but my programming abilities are limited to say the least (almost completely lacking if I'm honest!) - can somebody out there make this work?

If ESP8266.com held a repository of useful graphics (ButtonOn/ButtonOff, LightbulbOn/LightbulbOff, FanOn/FanOff, RaindropOn/RaindropOff, etc.) then the community could draw from those and add to them, thereby building a very useful resource...

Now for a dumb question (it may be answered somewhere on the forum but I can't find it) - how do I set the IP Address of a module with ESP8266/Arduino?

DCHP works well but it's not always appropriate - if you need to address a specific WiFi sensor you need to know where it is and not have it change because somebody connected a laptop whilst it was sleeping. There are AT commands for both AP and 'Sation' modes to do this (AT+CIPAP=<ip> and AT+CIPSTA=<ip> respectively), but how is it done with the Arduino method?

Thanks