Redefine DYNAMIC_JSON_DOCUMENT_SIZE if not defined (#922)

This commit is contained in:
Pablo Clemente Maseda
2021-02-24 23:03:28 +01:00
committed by GitHub
parent f6fff3f91e
commit 2f784268f0

View File

@@ -41,7 +41,9 @@
#if ARDUINOJSON_VERSION_MAJOR == 5 #if ARDUINOJSON_VERSION_MAJOR == 5
#define ARDUINOJSON_5_COMPATIBILITY #define ARDUINOJSON_5_COMPATIBILITY
#else #else
#define DYNAMIC_JSON_DOCUMENT_SIZE 1024 #ifndef DYNAMIC_JSON_DOCUMENT_SIZE
#define DYNAMIC_JSON_DOCUMENT_SIZE 1024
#endif
#endif #endif
constexpr const char* JSON_MIMETYPE = "application/json"; constexpr const char* JSON_MIMETYPE = "application/json";