You've already forked TEF6686_ESP32
13 lines
276 B
C
13 lines
276 B
C
#pragma once
|
|
#include <TimeLib.h>
|
|
#include "globals.h"
|
|
#include "rtc.hpp"
|
|
|
|
static const char ntpServerName[] = "0.pool.ntp.org";
|
|
static const int localPort = 8944;
|
|
const int NTP_PACKET_SIZE = 48;
|
|
|
|
void sendNTPpacket(IPAddress &address);
|
|
void NTPupdate();
|
|
time_t getNtpTime();
|