This commit is contained in:
Carsten Graf
2025-07-26 02:57:38 +02:00
parent 0147ff2cd9
commit 20e7f1d6a6
4 changed files with 40 additions and 27 deletions

View File

@@ -1,12 +1,10 @@
#pragma once
#include <Arduino.h>
#include <ESPmDNS.h> // <-- mDNS hinzufügen
#include <PrettyOTA.h>
#include <WiFi.h>
#include <esp_now.h>
#include <esp_wifi.h>
#include <ElegantOTA.h> // OTA Updates
#include <PrettyOTA.h>
#include "licenceing.h"
#include "master.h"
@@ -81,7 +79,7 @@ void setupWifi() {
void setupOTA(AsyncWebServer *server) {
// Initialize PrettyOTA
//ElegantOTA.begin(server);
// ElegantOTA.begin(server);
OTAUpdates.Begin(server);
@@ -91,11 +89,12 @@ void setupOTA(AsyncWebServer *server) {
// Set firmware version to 1.0.0
OTAUpdates.SetAppVersion(firmwareversion);
OTAUpdates.UseDefaultCallbacks(true);
// Set current build time and date
PRETTY_OTA_SET_CURRENT_BUILD_TIME_AND_DATE();
}
// Generiert eine eindeutige SSID auf Basis der MAC-Adresse.
String getUniqueSSID() {
uint8_t mac[6];