feat: add-ntp-support (#4)

This commit is contained in:
2023-10-21 19:14:00 +02:00
parent 8edae04556
commit 470abe2804
4 changed files with 46 additions and 6 deletions

View File

@ -3,6 +3,8 @@
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <NTPClient.h>
#include <WiFiUdp.h>
#include "DiscordAPI.h"
#include "SwitchableEncodeur.h"
@ -35,6 +37,15 @@ private:
DiscordAPI* discord;
LedLib* ledLib;
WiFiUDP* ntpUDP;
NTPClient* timeClient;
/**
* @brief Send time to discord
* the start time is automaticly set to the current time
* @param[in] timeEnd LabOuest closing time
*/
void sendTime(String timeEnd);
};
#endif