Skip to content

witnessmenow/arduino-external-web-interface-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Exploring using external web interfaces for your Arduino

I think it's amazing that $4 ESP8266 boards can host webpages, but actually writing the webpage within your sketch can be very frustrating! In these examples I'm going to look at some different ways of moving the development away from the Arduino.

The server code for these examples can be found here

Redirect and Ajax example

  1. End user requests page from ESP8266
  2. ESP8266 responds with a page that will redirect users browser to external page
  3. Params will be sent to the external page including the IP address of the ESP8266
  4. The webpage will repeatedly make ajax (background) requests to the data endpoint of the ESP8266 and display the response on the page

Main advantage of this is how simple it is, it only uses HTML and javascript (it will run on any webserver). You can also make cosmetic changes to the web interface without changing the code on the ESP8266

Biggest disadvantage is that even though the website is hosted externally, the user still needs to be on the same internal network as the ESP8266

About

Example sketches demoing using external web interfaces for communicating with your Arduino

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%