#ifndef NTP_Synchronisation
|
|
#define NTP_Synchronisation
|
|
|
|
#include <WiFi.h>
|
|
#include "time.h"
|
|
#include "WifiConfig.h"
|
|
|
|
extern const char* ntpServer;
|
|
extern const long gmtOffset_sec;
|
|
extern const int daylightOffset_sec;
|
|
extern struct tm timeinfo;
|
|
|
|
extern bool connectWifi(int, int);
|
|
extern void disconnectWifi();
|
|
extern bool synchroniseTimeNTP(bool, bool, int, int);
|
|
|
|
#endif
|