27 lines
413 B
C++
27 lines
413 B
C++
#ifndef NTPStatus_h
|
|
#define NTPStatus_h
|
|
|
|
#include <ESP8266WiFi.h>
|
|
#include <ESPAsyncTCP.h>
|
|
#include <ESPAsyncWebServer.h>
|
|
#include <ArduinoJson.h>
|
|
#include <AsyncJson.h>
|
|
#include <TimeLib.h>
|
|
#include <NtpClientLib.h>
|
|
|
|
class NTPStatus {
|
|
|
|
public:
|
|
|
|
NTPStatus(AsyncWebServer *server);
|
|
|
|
private:
|
|
|
|
AsyncWebServer* _server;
|
|
|
|
void ntpStatus(AsyncWebServerRequest *request);
|
|
|
|
};
|
|
|
|
#endif // end NTPStatus_h
|