You've already forked TEF6686_ESP32
12 lines
255 B
C
12 lines
255 B
C
#pragma once
|
|
#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();
|