Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/plapointe6/espsimpleremoteupdate
Simple remote update for ESP32 and ESP8266
https://github.com/plapointe6/espsimpleremoteupdate
arduino arduino-library esp32 esp8266 iot
Last synced: about 2 months ago
JSON representation
Simple remote update for ESP32 and ESP8266
- Host: GitHub
- URL: https://github.com/plapointe6/espsimpleremoteupdate
- Owner: plapointe6
- License: gpl-3.0
- Created: 2021-11-29T22:54:46.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-04T17:15:35.000Z (almost 3 years ago)
- Last Synced: 2023-03-10T06:46:29.909Z (almost 2 years ago)
- Topics: arduino, arduino-library, esp32, esp8266, iot
- Language: C++
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple remote program update handling for ESP8266 and ESP32
Simple remote update management for ESP8266 and ESP32.
Allow to easily set a light Web updater and/or OTA update. Intended to be used with an ESP8266 or ESP32.What this library can do:
- Can host and manage a minimal web GUI to upload a new program (web updater)
- Can enable and manage Arduino OTA
- Automatically restart these services when a WiFI connection is lost.I took some code from palpointe6/EspMQTTClient. So, thanks to the contributors that worked on this part from EspMQTTClient: @EdJoPaTo, @hallard.
# Get started
```c++
#include "EspSimpleRemoteUpdate.h"EspSimpleRemoteUpdate updater;
void setup() {
updater.enableHTTPWebUpdater("USERNAME", "PASSWORD");
updater.enableOTA("PASSWORD");// Obiviously, you need to do some WiFi connection stuff.
// EspSimpleRemoteUpdate will automatically detect a new WiFI connection and will start the enabled features automatically.
}void loop() {
updater.handle(); // Calling this at every loop() is mandatory.
}
```# Some documentation
```c++
// Enable debugging messages (sent to Serial)
enableDebuggingMessages();// Set the hostname
setHostname(const char* hostname);// Enable the web updater
enableHTTPWebUpdater(const char* username = "", const char* password = "", const char* baseAddr = "/");// Enable Arduino OTA
enableOTA(const char* password, const uint16_t port = 0);// Calling this at every loop() is mandatory.
handle();
```