1
0
mirror of https://github.com/s00500/ESPUI.git synced 2024-11-21 17:40:54 +00:00

Added ClientTransferContext_t to the marshal API

This commit is contained in:
Martin 2023-09-03 09:30:31 -04:00
parent fae30398b2
commit ec41deab01

View File

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