Ei kuvausta

Ayush Sharma ff1cb241dc Update README.md 6 vuotta sitten
docs 88c5223c16 Create logo.svg 6 vuotta sitten
examples 9bfc04ec00 Initial Library 6 vuotta sitten
src 9bfc04ec00 Initial Library 6 vuotta sitten
.gitattributes a4b5162503 Initial commit 6 vuotta sitten
.gitignore eb6860202f Create .gitignore 6 vuotta sitten
LICENSE a4b5162503 Initial commit 6 vuotta sitten
README.md ff1cb241dc Update README.md 6 vuotta sitten
keywords.txt 9bfc04ec00 Initial Library 6 vuotta sitten
library.json 9bfc04ec00 Initial Library 6 vuotta sitten
library.properties 9bfc04ec00 Initial Library 6 vuotta sitten

README.md


   


Push OTAs to ESP8266 Elegantly!

ElegantOTA 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.



Preview



Documentation

ElegantOTA 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 ElegantOTA Library `#include ` at top of your Arduino Code. Paste this - `ElegantOTA.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)

Example


#include <ESP8266WiFi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include <ElegantOTA.h>

const char* ssid = "........";
const char* password = "........";

ESP8266WebServer 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("/", []() {
    server.send(200, "text/plain", "Hi! I am ESP8266.");
  });

  ElegantOTA.begin(&server);    // Start ElegantOTA
  server.begin();
  Serial.println("HTTP server started");
}

void loop(void) {
  server.handleClient();
}