mirror of
https://github.com/s00500/ESPUI.git
synced 2025-07-04 11:20:19 +00:00
Add Time control
Adds a new invisible control that can fetch the current time from a connected client. Documentation is in the README.
This commit is contained in:
@ -56,6 +56,7 @@ enum ControlType : uint8_t
|
||||
Gauge,
|
||||
Accel,
|
||||
Separator,
|
||||
Time,
|
||||
|
||||
UpdateOffset = 100,
|
||||
UpdatePad = 101,
|
||||
@ -76,6 +77,7 @@ enum ControlType : uint8_t
|
||||
UpdateGauge,
|
||||
UpdateAccel,
|
||||
UpdateSeparator,
|
||||
UpdateTime,
|
||||
|
||||
InitialGui = 200,
|
||||
Reload = 201,
|
||||
@ -199,6 +201,7 @@ private:
|
||||
#define N_VALUE 9
|
||||
#define T_VALUE 10
|
||||
#define S_VALUE 11
|
||||
#define TM_VALUE 12
|
||||
|
||||
enum Verbosity : uint8_t
|
||||
{
|
||||
@ -286,6 +289,7 @@ public:
|
||||
void updateText(uint16_t id, const String& nValue, int clientId = -1);
|
||||
void updateSelect(uint16_t id, const String& nValue, int clientId = -1);
|
||||
void updateGauge(uint16_t id, int number, int clientId);
|
||||
void updateTime(uint16_t id, int clientId = -1);
|
||||
|
||||
void clearGraph(uint16_t id, int clientId = -1);
|
||||
void addGraphPoint(uint16_t id, int nValue, int clientId = -1);
|
||||
|
Reference in New Issue
Block a user