Comments und add licence

This commit is contained in:
Carsten Graf
2025-07-12 17:39:45 +02:00
parent 585d2d7d5d
commit d10a8fef6d
11 changed files with 126 additions and 34 deletions

View File

@@ -6,17 +6,16 @@
#include <esp_now.h>
#include <esp_wifi.h>
#include "licenceing.h"
#include "master.h"
String uniqueSSID;
PrettyOTA OTAUpdates;
String getUniqueSSID();
// Initialisiert das WLAN als Access Point oder Station und startet mDNS/OTA.
void setupWifi() {
uniqueSSID = getUniqueSSID();
@@ -69,6 +68,7 @@ void setupWifi() {
}
}
// Initialisiert das OTA-Update-System (PrettyOTA) für Firmware-Updates.
void setupOTA(AsyncWebServer *server) {
// Initialize PrettyOTA
OTAUpdates.Begin(server);
@@ -83,6 +83,7 @@ void setupOTA(AsyncWebServer *server) {
PRETTY_OTA_SET_CURRENT_BUILD_TIME_AND_DATE();
}
// Generiert eine eindeutige SSID auf Basis der MAC-Adresse.
String getUniqueSSID() {
uint8_t mac[6];
esp_wifi_get_mac(WIFI_IF_STA, mac);