A base program for ESP8266, with WifiManager, OTA and a simple web server
A minimalistic Arduino project with WifiManager, OTA and a web server for ESP8266 and ESP32. A nice starting point for any new ESP projects.
The main branch contains code for usage with PlatformIO.
If you prefer using the old Arduino IDE, the ArduinoIDE branch contains the code for this.
Make sure you have installed the dependencies according to their installation instructions for your environment
As described in the WifiManager projects documentation:
The project comes with a simple web page that displays a list of buttons.
The buttons are generated from a javascript array of strings.
The void handleJavascript()
function has an example with a single button “Test” and a link to a non-existent enpoint called http://{your_ESP_IP}/led1
The html code for the demo page is available in data/index.html
in this repository.
Make sure to upload the contents of the data folder using the LittleFS file upload utility
The buttons are generated from an array of strings where the strings contain the button text and link seperated with a pipe symbol as shown here:
var buttonData = ['Toggle LED|/led1']