this code was written by clowns? No it was AI

This commit is contained in:
2026-01-05 15:39:59 +01:00
parent 314aa0a6b5
commit bfe5a41ea3
14 changed files with 153 additions and 441 deletions

View File

@@ -1,6 +1,4 @@
#ifndef NTP_H
#define NTP_H
#pragma once
#include <Arduino.h>
#include <WiFi.h>
#include <WiFiClient.h>
@@ -11,7 +9,7 @@
static const char ntpServerName[] = "0.pool.ntp.org";
static const int localPort = 8944;
const int NTP_PACKET_SIZE = 48; // NTP time is in the first 48 bytes of message
const int NTP_PACKET_SIZE = 48;
extern ESP32Time rtc;
extern WiFiClient RemoteClient;
@@ -25,4 +23,3 @@ extern bool rtcset;
void sendNTPpacket(IPAddress &address);
void NTPupdate();
time_t getNtpTime();
#endif