Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By Jeroen Beemster
#14140 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.
User avatar
By RichardS
#14141 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.
User avatar
By gerardwr
#14175
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
You do not have the required permissions to view the files attached to this post.
User avatar
By duncan_a
#14565 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