Buffer.hpp
Go to the documentation of this file.
14 using ActionAsyncClient = std::function<bool(WebServer* _interface, const uint32_t& _serviceId, uint64_t _transactionId, uint64_t _part)>;
28 int16_t partID; // if < 0 the partId ifs the last (start at 0 if multiple or 0x8000 if single message)
45 // not needed ==> can be deduced with parameter number ... U16 Offset String call Name (start of the buffer) end with \0
50 U16[param count] parameters offset (first offset is the "callName" and limit size of the number of parameter
68 U16[param count] parameters offset (first offset is the "callName" and limit size of the number of parameter
std::vector< zeus::ActionAsyncClient > m_multipleSend
Async element to send data on the webinterface when too big ...
Definition: Buffer.hpp:135
void addType(std::vector< uint8_t > &_data, zeus::ParamType _type)
Add a parameter generic type in the buffer.
std::vector< zeus::ActionAsyncClient > moveAsync()
Get the list of async data to send.
Definition: Buffer.hpp:148
void clear()
void setServiceId(uint32_t _value)
Set the Service identifier of the packet (same as client)
Definition: Buffer.hpp:200
void addTypeRaw(std::vector< uint8_t > &_data)
Add a parameter RAW type in the buffer.
bool haveAsync() const
Check if async element are present on this buffer.
Definition: Buffer.hpp:141
Definition: Buffer.hpp:33
void addTypeObject(std::vector< uint8_t > &_data, const std::string _type)
Add a parameter object type in the buffer.
uint32_t getServiceId() const
Get the Service identifier of the packet (same as client)
Definition: Buffer.hpp:193