AsyncWebOTA provides a web-based OTA (Over-The-Air) update interface with real-time readouts and customizable buttons for ESP8266, ESP32, and RP2040 devices.
- Web-based OTA firmware updates
- Real-time variable readouts
- Customizable action buttons
- Dark mode UI
- Support for multiple platforms (ESP8266, ESP32, RP2040)
- Download the latest release
- In Arduino IDE: Sketch > Include Library > Add .ZIP Library
- Select the downloaded file
#include <AsyncWebOTA.h>
AsyncWebOTA webOTA;
void setup() {
Serial.begin(115200);
WiFi.begin("SSID", "password");
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
webOTA.setDeviceName("My Device");
// Add readouts
int sensorValue = 42;
webOTA.addReadout("Temperature", sensorValue, "°C");
// Add buttons
webOTA.addButton("restart", "Restart", []() {
Serial.println("Restart requested");
delay(1000);
AsyncWebOTA::restartDevice();
});
webOTA.begin();
}
void loop() {
// Your code here
}