1
0
mirror of https://github.com/s00500/ESPUI.git synced 2025-07-03 04:30:19 +00:00

Aligned with latest main branch

This commit is contained in:
Martin
2023-09-09 16:52:28 -04:00
parent 136b182813
commit 7e3de1c14f
5 changed files with 349 additions and 245 deletions

View File

@ -2,7 +2,6 @@
#include <Arduino.h>
#include <ArduinoJson.h>
#include <ESPUIClient.h>
enum ControlType : uint8_t
{
@ -30,8 +29,9 @@ enum ControlType : uint8_t
Accel,
Separator,
Time,
Fragment,
Fragment,
Password = 99,
UpdateOffset = 100,
};
@ -84,7 +84,7 @@ public:
void SendCallback(int type);
bool HasCallback() { return ((nullptr != callback) || (nullptr != extendedCallback)); }
void MarshalControl(ArduinoJson::JsonObject& item, bool refresh, uint32_t StartingOffset);
void MarshalControl(ArduinoJson::JsonObject& item, bool refresh);
void MarshalErrorMessage(ArduinoJson::JsonObject& item);
bool ToBeDeleted() { return (ControlSyncState_t::deleted == ControlSyncState); }
void DeleteControl();