8000 Fix #16: Add overflowed() · libretiny-eu/ESPAsyncWebServer@b30a44e · GitHub
[go: up one dir, main page]

Skip to content

Commit b30a44e

Browse files
committed
Fix esphome#16: Add overflowed()
1 parent 6732d01 commit b30a44e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/AsyncJson.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ class AsyncJsonResponse : public AsyncAbstractResponse {
137137
return _contentLength;
138138
}
139139

140-
size_t getSize() { return _jsonBuffer.size(); }
140+
size_t getSize() const { return _jsonBuffer.size(); }
141+
142+
#if ARDUINOJSON_VERSION_MAJOR >= 6
143+
bool overflowed() const { return _jsonBuffer.overflowed(); }
144+
#endif
141145

142146
size_t _fillBuffer(uint8_t* data, size_t len) {
143147
ChunkPrint dest(data, _sentLength, len);

0 commit comments

Comments
 (0)
0