From ec41deab01f7904c04a72f13124d042f1007348e Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 3 Sep 2023 09:30:31 -0400 Subject: [PATCH] Added ClientTransferContext_t to the marshal API --- src/ESPUIcontrol.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ESPUIcontrol.h b/src/ESPUIcontrol.h index d47c074..6e80c06 100644 --- a/src/ESPUIcontrol.h +++ b/src/ESPUIcontrol.h @@ -2,6 +2,7 @@ #include #include +#include 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();