Files
TEF6686_ESP32/include/NTPupdate.h
2026-02-19 10:24:24 +01:00

12 lines
267 B
C++

#pragma once
#include "globals.h"
#include "rtc.hpp"
static constexpr char ntpServerName[] = "0.pool.ntp.org";
static constexpr int localPort = 8944;
constexpr int NTP_PACKET_SIZE = 48;
void sendNTPpacket(IPAddress &address);
void NTPupdate();
time_t getNtpTime();