Per Mårtensson 683cdb5648 Added graphical for KEY800 | před 3 roky | |
---|---|---|
.github | před 3 roky | |
docs | před 4 roky | |
examples | před 3 roky | |
src | před 3 roky | |
ui | před 4 roky | |
.gitattributes | před 5 roky | |
.gitignore | před 5 roky | |
.travis.yml | před 3 roky | |
LICENSE | před 5 roky | |
README.md | před 3 roky | |
build_platformio.sh | před 4 roky | |
keywords.txt | před 3 roky | |
library.json | před 3 roky | |
library.properties | před 3 roky |
Perform OTAs for ESP8266 & ESP32 Asynchronously
AsyncElegantOTA provides a beautiful interface to upload Over the Air `.bin` updates to your ESP Modules with precise status and progress displayed over UI. This Library shows the current upload progress of your OTA and once finished, it will display the status of your OTA. This Version of Library uses AsyncWebServer. Thanks to @me-no-dev for a wonderful webserver library.
Go to Sketch > Include Library > Library Manager > Search for "AsyncElegantOTA" > Install
For Windows: Download the Repository and extract the .zip in Documents>Arduino>Libraries>{Place "ElegantOTA" folder Here}
For Linux: Download the Repository and extract the .zip in Sketchbook>Libraries>{Place "ElegantOTA" folder Here}
Download the Repository, Go to Sketch>Include Library>Add .zip Library> Select the Downloaded .zip File.
AsyncElegantOTA is a dead simple library which does your work in just 1 Line. Honestly, It's just a wrapper library which injects it's own elegant webpage instead of the ugly upload page which comes by default in Arduino Library.
Include AsyncElegantOTA Library `#include ` at top of your Arduino Code. Paste this - `AsyncElegantOTA.begin(&server);` line above your `server.begin();` That's all! Now copy the IPAddress displayed over your Serial Monitor and go to `http:///update` in browser. ( where `` is the IP of your ESP Module)Tutorials for AsyncElegantOTA is live on RandomNerdTutorials.
https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-arduino/
https://randomnerdtutorials.com/esp8266-nodemcu-ota-over-the-air-vs-code/
https://randomnerdtutorials.com/esp32-ota-over-the-air-arduino/
https://randomnerdtutorials.com/esp32-ota-over-the-air-vs-code/
#include <ESP8266WiFi.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <AsyncElegantOTA.h>
const char* ssid = "........";
const char* password = "........";
AsyncWebServer server(80);
void setup(void) {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(200, "text/plain", "Hi! I am ESP8266.");
});
AsyncElegantOTA.begin(&server); // Start ElegantOTA
server.begin();
Serial.println("HTTP server started");
}
void loop(void) {
}
#include <WiFi.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <AsyncElegantOTA.h>
const char* ssid = "........";
const char* password = "........";
AsyncWebServer server(80);
void setup(void) {
Serial.begin(115200);
WiFi.mode(WIFI_STA);
WiFi.begin(ssid, password);
Serial.println("");
// Wait for connection
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.print("Connected to ");
Serial.println(ssid);
Serial.print("IP address: ");
Serial.println(WiFi.localIP());
server.on("/", HTTP_GET, [](AsyncWebServerRequest *request) {
request->send(200, "text/plain", "Hi! I am ESP32.");
});
AsyncElegantOTA.begin(&server); // Start ElegantOTA
server.begin();
Serial.println("HTTP server started");
}
void loop(void) {
}
Every Contribution to this repository is highly appriciated! Don't fear to create pull requests which enhance or fix the library as ultimatly you are going to help everybody.
If you want to donate to the author then you can buy me a coffee, It really helps me keep these libraries updated: