Finally, setting the ESP8266 to wifi.STATIONAP mode, the green LED can be controlled either directly on its access point IP address (192.168.4.1) or via my home WiFi network.

By Julian

Youtuber, shed dweller, solar charge controller aficionado

15 thoughts on “Esp8266 hack #4: web enabled led – wifi internet-of-things iot”
  1. Avataaar/Circle Created with python_avatars Sandeep Kumar says:

    Sir I don't download ESplorer

  2. Avataaar/Circle Created with python_avatars ten piseth says:

    but how it connect to wifi local home network??
    no need to add wifi SSID? Password??

  3. Avataaar/Circle Created with python_avatars Capi Berra says:

    Interesting stuff, thanks.

  4. Avataaar/Circle Created with python_avatars freakqnc says:

    Thanks for the video series, very good info and tests. One question: How would you go about pooling multiple ESP8266 (say 10) to use them as switches that could be controlled within a single page? It is not very practical to have to connect to different IPs to controls a single switch… so all the switches should be aggregated to a single webpage…. maybe something that could work (and I am just brain-farting hoping won't be a complete stink ;P) could be to set every station to static IPs and then load each of them using javascript location in the html of a "master" webserver to place them in the webpage of the master where all the other ESP8266 would be listed through iframes (much like one would load different web pages from different sites โ€“ hence IPs) to sort of create a control panel UI on a single page? Does that make (some) sense? ๐Ÿ™‚

  5. Avataaar/Circle Created with python_avatars Yoshidis Yo says:

    try combine it with a raspberry pi and openhab?

  6. Avataaar/Circle Created with python_avatars cab says:

    ok, I got it working thanks to your amazing videos! But how can I now access it over the internet from anywhere in the world?

  7. Avataaar/Circle Created with python_avatars dnitemarez says:

    Just want to saw that your detailed videos helped me a LOT with my project ๐Ÿ™‚

  8. Avataaar/Circle Created with python_avatars HollerboyHellbilly says:

    Thanks so much for the excellent explanations on every electronic gadget you cover. You are a great teacher.

  9. Avataaar/Circle Created with python_avatars akash babu says:

    hope you do more of such tutorials

  10. Avataaar/Circle Created with python_avatars akash babu says:

    i saw all the 4 tutorials and all im left to say is a big thanx to u, without wic it wud hav been a lot and a lot of struggle to get introduced to ESP8266

  11. Avataaar/Circle Created with python_avatars Jan Zagar says:

    HEY, have you ever work with I2C PCF8574P LCD Display and if you worked can you send me link.

  12. Avataaar/Circle Created with python_avatars Jan Zagar says:

    Hey, i want to ask if is possible the ESP8266 to get data from Internet (google) and i connect with my phone on ESP8266 and i to get google on phone.

  13. Avataaar/Circle Created with python_avatars Stรฉphane LINO says:

    Hi all! I'm wondering, if it can connect to an AP connected to the web and at the same time made is own AP, wouldn't be possible to make a WiFi repeater? As the range are not that bad (with external antenna for example), I think it would be one of the cheapest WiFi repeater.

    Sorry if I made mistake or incorrect grammar, I try to do my best ๐Ÿ™‚

  14. Avataaar/Circle Created with python_avatars Flavio Cunha says:

    Hi Julian, I got it to work, thanks to you!!! ย However on my iPad it shows the HTML code and no page and on iPhone nothing. Do you think it could be the line 9 on init lua should change TCP to HTML??? it works great on my mac mini.

  15. Avataaar/Circle Created with python_avatars Ryan says:

    I wonder why your led turns on and off so slowly. I used the same code and mine loads almost instantly (almost as fast as using websockets!!!) I didnt put any resistors or capacitors on my esp and i have the same one as you. Do you think its because you are so close to your router? My router is down in the basement about 50 feet and through many walls and even when I set up port forwarding and access this "LED" from my office it's next to instant.

    Just wondering if the capacitor is making it worse.

    What do you think?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.