RFID Implementierung

This commit is contained in:
Carsten Graf
2025-09-20 01:04:00 +02:00
parent 1ed3a30340
commit 7e9705902e
10 changed files with 715 additions and 554 deletions

View File

@@ -1,15 +1,11 @@
// Zeit-bezogene Variablen und Includes
#pragma once
#include "RTClib.h"
#include <Arduino.h>
#include <ArduinoJson.h>
#include <ESPAsyncWebServer.h>
#include <Wire.h>
#include <sys/time.h>
#include <time.h>
RTC_PCF8523 rtc;
// Globale Zeitvariablen
struct timeval tv;
struct timezone tz;
@@ -90,8 +86,6 @@ bool setSystemTime(long timestamp) {
// Initialisiert die Zeit-API und richtet die HTTP-Endpunkte ein.
void setupTimeAPI(AsyncWebServer &server) {
// setupRTC();
// API-Endpunkt: Aktuelle Zeit abrufen
server.on("/api/time", HTTP_GET, [](AsyncWebServerRequest *request) {
String response = getCurrentTimeJSON();