11 #ifndef _SMING_CORE_DATA_STREAM_JSON_OBJECT_STREAM_H_ 12 #define _SMING_CORE_DATA_STREAM_JSON_OBJECT_STREAM_H_ 14 #include "MemoryDataStream.h" 15 #include "../Libraries/ArduinoJson/include/ArduinoJson.h" 55 return rootNode.success() ? rootNode.measureLength() : 0;
59 DynamicJsonBuffer buffer;
uint16_t readMemoryBlock(char *data, int bufSize) override
Read a block of memory.
StreamType getStreamType() const override
Get the stream type.
Definition: JsonObjectStream.h:33
JsonObject stream class.
Definition: JsonObjectStream.h:23
JSON object data stream.
Definition: DataSourceStream.h:27
int available() override
Return the total length of the stream.
Definition: JsonObjectStream.h:53
StreamType
Data stream type.
Definition: DataSourceStream.h:22
JsonObjectStream()
Create a JSON object stream.
Definition: JsonObjectStream.h:28
JsonObject & getRoot()
Get the JSON root node.
Definition: JsonObjectStream.h:41
Definition: MemoryDataStream.h:29