You've already forked TEF6686_ESP32
Transition to PlatformIO
This commit is contained in:
28
include/NTPupdate.h
Normal file
28
include/NTPupdate.h
Normal file
@@ -0,0 +1,28 @@
|
||||
#ifndef NTP_H
|
||||
#define NTP_H
|
||||
|
||||
#include <Arduino.h>
|
||||
#include <WiFi.h>
|
||||
#include <WiFiClient.h>
|
||||
#include <WiFiUdp.h>
|
||||
#include "ESP32Time.h"
|
||||
#include "TimeLib.h"
|
||||
#include "TEF6686.h"
|
||||
|
||||
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
|
||||
|
||||
extern ESP32Time rtc;
|
||||
extern WiFiClient RemoteClient;
|
||||
extern WiFiUDP Udp;
|
||||
extern TEF6686 radio;
|
||||
|
||||
extern bool wifi;
|
||||
extern bool NTPupdated;
|
||||
extern bool rtcset;
|
||||
|
||||
void sendNTPpacket(IPAddress &address);
|
||||
void NTPupdate();
|
||||
time_t getNtpTime();
|
||||
#endif
|
||||
Reference in New Issue
Block a user