Skip to content
This repository was archived by the owner on Mar 5, 2026. It is now read-only.

Commit b0c6144

Browse files
baggiorme-no-dev
authored andcommitted
Update AsyncJson.h (me-no-dev#533)
for the newest ArduinoJson v6 compatibility
1 parent b3b9ec9 commit b0c6144

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/AsyncJson.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ class AsyncJsonResponse: public AsyncAbstractResponse {
140140
}
141141
};
142142

143+
#ifdef ARDUINOJSON_5_COMPATIBILITY
143144
class PrettyAsyncJsonResponse: public AsyncJsonResponse {
144145
public:
145146
PrettyAsyncJsonResponse (bool isArray=false) : AsyncJsonResponse{isArray} {}
@@ -154,6 +155,7 @@ class PrettyAsyncJsonResponse: public AsyncJsonResponse {
154155
return len;
155156
}
156157
};
158+
#endif
157159

158160
typedef std::function<void(AsyncWebServerRequest *request, JsonVariant &json)> ArJsonRequestHandlerFunction;
159161

0 commit comments

Comments
 (0)