Installation
Install ElegantOTA Lite or ElegantOTA Pro in the Arduino IDE or PlatformIO.
This page describes how to install ElegantOTA in the Arduino IDE and in PlatformIO. In its default (synchronous) configuration, ElegantOTA uses the web server built into your platform's Arduino core and needs no additional libraries. To use ESPAsyncWebServer instead, also install the dependencies listed in Async Mode.
Install ElegantOTA Lite
Library Manager
Open Sketch > Include Library > Manage Libraries, search for "ElegantOTA" and click Install.
Manual installation
- Download the ElegantOTA repository archive.
- Extract the archive into your Arduino libraries folder:
- Windows:
Documents/Arduino/libraries/ - Linux:
<sketchbook>/libraries/
- Windows:
Import a ZIP library
- Download the ElegantOTA repository archive.
- Open Sketch > Include Library > Add .ZIP Library and select the downloaded file.
Install ElegantOTA Pro
ElegantOTA Pro is not published in the Arduino or PlatformIO library registries. Install it from the source you received with your license.
- Download the ElegantOTA Pro library as a ZIP archive.
- Open Sketch > Include Library > Add .ZIP Library and select the archive.
Alternatively, extract the library folder into the libraries folder of your sketchbook.
In your sketch, include the Pro header instead of the Lite header:
#include <ElegantOTAPro.h>The global ElegantOTA object and the core API are the same in both editions.
Next steps
- Integration Guide: add the OTA portal to an existing web server sketch.
- Async Mode: use ElegantOTA with
ESPAsyncWebServer. - Examples: browse the example sketches.