mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-12 09:51:18 +01:00
16 lines
342 B
C
16 lines
342 B
C
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <ESPAsyncWebServer.h>
|
||
|
|
|
||
|
|
class WebApiNtpClass {
|
||
|
|
public:
|
||
|
|
void init(AsyncWebServer* server);
|
||
|
|
void loop();
|
||
|
|
|
||
|
|
private:
|
||
|
|
void onNtpStatus(AsyncWebServerRequest* request);
|
||
|
|
void onNtpAdminGet(AsyncWebServerRequest* request);
|
||
|
|
void onNtpAdminPost(AsyncWebServerRequest* request);
|
||
|
|
|
||
|
|
AsyncWebServer* _server;
|
||
|
|
};
|