Back to Pretty OTA

This commit is contained in:
Carsten Graf
2025-07-26 02:03:35 +02:00
parent a85bd6227e
commit 0147ff2cd9
26 changed files with 3980 additions and 23 deletions

View File

@@ -6,12 +6,15 @@
#include <esp_wifi.h>
#include <ElegantOTA.h> // OTA Updates
#include <PrettyOTA.h>
#include "licenceing.h"
#include "master.h"
#include "timesync.h"
String uniqueSSID;
PrettyOTA OTAUpdates;
String getUniqueSSID();
bool isInternetAvailable();
@@ -78,25 +81,20 @@ void setupWifi() {
void setupOTA(AsyncWebServer *server) {
// Initialize PrettyOTA
ElegantOTA.begin(server);
//ElegantOTA.begin(server);
//OTAUpdates.Begin(server);
OTAUpdates.Begin(server);
// Set unique Hardware-ID for your hardware/board
//OTAUpdates.SetHardwareID("AquaCross-Master");
OTAUpdates.SetHardwareID("AquaCross-Master");
// Set firmware version to 1.0.0
//OTAUpdates.SetAppVersion(firmwareversion);
OTAUpdates.SetAppVersion(firmwareversion);
// Set current build time and date
//PRETTY_OTA_SET_CURRENT_BUILD_TIME_AND_DATE();
PRETTY_OTA_SET_CURRENT_BUILD_TIME_AND_DATE();
}
void loopOTA(){
ElegantOTA.loop();
}
// Generiert eine eindeutige SSID auf Basis der MAC-Adresse.
String getUniqueSSID() {