We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7949d83 commit e88fc12Copy full SHA for e88fc12
src/AsyncJson.h
@@ -142,7 +142,11 @@ class AsyncJsonResponse: public AsyncAbstractResponse {
142
143
class PrettyAsyncJsonResponse: public AsyncJsonResponse {
144
public:
145
- PrettyAsyncJsonResponse (bool isArray=false) : AsyncJsonResponse{isArray} {}
+#ifdef ARDUINOJSON_5_COMPATIBILITY
146
+ PrettyAsyncJsonResponse (bool isArray=false) : AsyncJsonResponse{isArray} {}
147
+#else
148
+ PrettyAsyncJsonResponse (bool isArray=false, size_t maxJsonBufferSize = DYNAMIC_JSON_DOCUMENT_SIZE) : AsyncJsonResponse{isArray, maxJsonBufferSize} {}
149
+#endif
150
size_t setLength () {
151
#ifdef ARDUINOJSON_5_COMPATIBILITY
152
_contentLength = _root.measurePrettyLength ();
0 commit comments