|
|
@@ -53,6 +53,11 @@
|
|
|
#define ARDUINOJSON_DEFAULT_NESTING_LIMIT 10
|
|
|
#endif
|
|
|
|
|
|
+// Default capacity for DynamicJsonDocument
|
|
|
+#ifndef ARDUINOJSON_DEFAULT_POOL_SIZE
|
|
|
+#define ARDUINOJSON_DEFAULT_POOL_SIZE 1024
|
|
|
+#endif
|
|
|
+
|
|
|
#else // ARDUINOJSON_EMBEDDED_MODE
|
|
|
|
|
|
// On a computer we have plenty of memory so we can use doubles
|
|
|
@@ -84,6 +89,11 @@
|
|
|
#define ARDUINOJSON_DEFAULT_NESTING_LIMIT 50
|
|
|
#endif
|
|
|
|
|
|
+// Default capacity for DynamicJsonDocument
|
|
|
+#ifndef ARDUINOJSON_DEFAULT_POOL_SIZE
|
|
|
+#define ARDUINOJSON_DEFAULT_POOL_SIZE 16384
|
|
|
+#endif
|
|
|
+
|
|
|
#endif // ARDUINOJSON_EMBEDDED_MODE
|
|
|
|
|
|
#ifdef ARDUINO
|