mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
updated to latest arduinojson patch
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#include "src/ArduinoJson.h"
|
#include "src/ArduinoJson.h"
|
||||||
|
|||||||
@@ -1,6 +1,65 @@
|
|||||||
ArduinoJson: change log
|
ArduinoJson: change log
|
||||||
=======================
|
=======================
|
||||||
|
|
||||||
|
HEAD
|
||||||
|
----
|
||||||
|
|
||||||
|
* Removed support for `char` values, see below (issue #1498)
|
||||||
|
* `deserializeJson()` leaves `\uXXXX` unchanged instead of returning `NotSupported`
|
||||||
|
* `deserializeMsgPack()` inserts `null` instead of returning `NotSupported`
|
||||||
|
* Removed `DeserializationError::NotSupported`
|
||||||
|
* Added `JsonVariant::is<JsonArrayConst/JsonObjectConst>()` (issue #1412)
|
||||||
|
* Added `JsonVariant::is<JsonVariant/JsonVariantConst>()` (issue #1412)
|
||||||
|
* Changed `JsonVariantConst::is<JsonArray/JsonObject>()` to return `false` (issue #1412)
|
||||||
|
|
||||||
|
> ### BREAKING CHANGES
|
||||||
|
>
|
||||||
|
> We cannot cast a `JsonVariant` to a `char` anymore, so the following will break:
|
||||||
|
> ```c++
|
||||||
|
> char age = doc["age"]; // error: no matching function for call to 'variantAs(VariantData*&)'
|
||||||
|
> ```
|
||||||
|
> Instead, you must use another integral type, such as `int8_t`:
|
||||||
|
> ```c++
|
||||||
|
> int8_t age = doc["age"]; // OK
|
||||||
|
> ```
|
||||||
|
>
|
||||||
|
> Similarly, we cannot assign from a `char` anymore, so the following will break:
|
||||||
|
> ```c++
|
||||||
|
> char age;
|
||||||
|
> doc["age"] = age; // error: no matching function for call to 'VariantRef::set(const char&)'
|
||||||
|
> ```
|
||||||
|
> Instead, you must use another integral type, such as `int8_t`:
|
||||||
|
> ```c++
|
||||||
|
> int8_t age;
|
||||||
|
> doc["age"] = age; // OK
|
||||||
|
> ```
|
||||||
|
>
|
||||||
|
> On a different topic, `DeserializationError::NotSupported` has been removed.
|
||||||
|
> Instead of returning this error:
|
||||||
|
>
|
||||||
|
> * `deserializeJson()` leaves `\uXXXX` unchanged (only when `ARDUINOJSON_DECODE_UNICODE` is `0`)
|
||||||
|
> * `deserializeMsgPack()` replaces unsupported values with `null`s
|
||||||
|
>
|
||||||
|
> Lastly, a very minor change conserns `JsonVariantConst::is<T>()`.
|
||||||
|
> It used to return `true` for `JsonArray` and `JsonOject`, but now it returns `false`.
|
||||||
|
> Instead, you must use `JsonArrayConst` and `JsonObjectConst`.
|
||||||
|
|
||||||
|
v6.17.3 (2021-02-15)
|
||||||
|
-------
|
||||||
|
|
||||||
|
* Made `JsonDocument`'s destructor protected (issue #1480)
|
||||||
|
* Added missing calls to `client.stop()` in `JsonHttpClient.ino` (issue #1485)
|
||||||
|
* Fixed error `expected ')' before 'char'` when `isdigit()` is a macro (issue #1487)
|
||||||
|
* Fixed error `definition of implicit copy constructor is deprecated` on Clang 10
|
||||||
|
* PlatformIO: set framework compatibility to `*` (PR #1490 by @maxgerhardt)
|
||||||
|
|
||||||
|
v6.17.2 (2020-11-14)
|
||||||
|
-------
|
||||||
|
|
||||||
|
* Fixed invalid conversion error in `operator|(JsonVariant, char*)` (issue #1432)
|
||||||
|
* Changed the default value of `ARDUINOJSON_ENABLE_PROGMEM` (issue #1433).
|
||||||
|
It now checks that the `pgm_read_XXX` macros are defined before enabling `PROGMEM`.
|
||||||
|
|
||||||
v6.17.1 (2020-11-07)
|
v6.17.1 (2020-11-07)
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|||||||
@@ -1,11 +0,0 @@
|
|||||||
# Contribution to ArduinoJson
|
|
||||||
|
|
||||||
First, thank you for taking the time to contribute to this project.
|
|
||||||
|
|
||||||
You can submit changes via GitHub Pull Requests.
|
|
||||||
|
|
||||||
Please:
|
|
||||||
|
|
||||||
1. Unit test every change in behavior
|
|
||||||
2. Use clang-format in "file" mode to format the code
|
|
||||||
3. Consider using the Continuous Integration (Travis and AppVeyor)
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
The MIT License (MIT)
|
The MIT License (MIT)
|
||||||
---------------------
|
---------------------
|
||||||
|
|
||||||
Copyright © 2014-2020 Benoit BLANCHON
|
Copyright © 2014-2021 Benoit BLANCHON
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
|||||||
@@ -2,9 +2,9 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
[](https://www.ardu-badge.com/ArduinoJson/6.17.1)
|
[](https://www.ardu-badge.com/ArduinoJson/6.17.3)
|
||||||
[](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
[](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22+branch%3A6.x)
|
||||||
[](https://travis-ci.org/bblanchon/ArduinoJson)
|
[](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
||||||
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
[](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
||||||
[](https://coveralls.io/github/bblanchon/ArduinoJson?branch=6.x)
|
[](https://coveralls.io/github/bblanchon/ArduinoJson?branch=6.x)
|
||||||
[](https://github.com/bblanchon/ArduinoJson/stargazers)
|
[](https://github.com/bblanchon/ArduinoJson/stargazers)
|
||||||
@@ -19,7 +19,7 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
|
|||||||
* [Optionally supports comments in the input](https://arduinojson.org/v6/api/config/enable_comments/?utm_source=github&utm_medium=readme)
|
* [Optionally supports comments in the input](https://arduinojson.org/v6/api/config/enable_comments/?utm_source=github&utm_medium=readme)
|
||||||
* [Optionally filters the input to keep only desired values](https://arduinojson.org/v6/api/json/deserializejson/?utm_source=github&utm_medium=readme#filtering)
|
* [Optionally filters the input to keep only desired values](https://arduinojson.org/v6/api/json/deserializejson/?utm_source=github&utm_medium=readme#filtering)
|
||||||
* Supports single quotes as a string delimiter
|
* Supports single quotes as a string delimiter
|
||||||
* Compatible with NDJSON and JSON Lines
|
* Compatible with [NDJSON](http://ndjson.org/) and [JSON Lines](https://jsonlines.org/)
|
||||||
* [JSON serialization](https://arduinojson.org/v6/api/json/serializejson/?utm_source=github&utm_medium=readme)
|
* [JSON serialization](https://arduinojson.org/v6/api/json/serializejson/?utm_source=github&utm_medium=readme)
|
||||||
* [Can write to a buffer or a stream](https://arduinojson.org/v6/api/json/serializejson/?utm_source=github&utm_medium=readme)
|
* [Can write to a buffer or a stream](https://arduinojson.org/v6/api/json/serializejson/?utm_source=github&utm_medium=readme)
|
||||||
* [Optionally indents the document (prettified JSON)](https://arduinojson.org/v6/api/json/serializejsonpretty/?utm_source=github&utm_medium=readme)
|
* [Optionally indents the document (prettified JSON)](https://arduinojson.org/v6/api/json/serializejsonpretty/?utm_source=github&utm_medium=readme)
|
||||||
@@ -58,11 +58,12 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
|
|||||||
* [IAR Embedded Workbench](https://www.iar.com/iar-embedded-workbench/)
|
* [IAR Embedded Workbench](https://www.iar.com/iar-embedded-workbench/)
|
||||||
* [Keil uVision](http://www.keil.com/)
|
* [Keil uVision](http://www.keil.com/)
|
||||||
* [MPLAB X IDE](http://www.microchip.com/mplab/mplab-x-ide)
|
* [MPLAB X IDE](http://www.microchip.com/mplab/mplab-x-ide)
|
||||||
|
* [Particle](https://www.particle.io/)
|
||||||
* [PlatformIO](http://platformio.org/)
|
* [PlatformIO](http://platformio.org/)
|
||||||
* [Sloeber plugin for Eclipse](https://eclipse.baeyens.it/)
|
* [Sloeber plugin for Eclipse](https://eclipse.baeyens.it/)
|
||||||
* [Visual Micro](http://www.visualmicro.com/)
|
* [Visual Micro](http://www.visualmicro.com/)
|
||||||
* [Visual Studio](https://www.visualstudio.com/)
|
* [Visual Studio](https://www.visualstudio.com/)
|
||||||
* [Even works with online compilers like wandbox.org](https://wandbox.org/permlink/t7KP7I6dVuLhqzDl)
|
* [Even works with online compilers like wandbox.org](https://wandbox.org/permlink/RlZSKy17DjJ6HcdN)
|
||||||
* [CMake friendly](https://arduinojson.org/v6/how-to/use-arduinojson-with-cmake/?utm_source=github&utm_medium=readme)
|
* [CMake friendly](https://arduinojson.org/v6/how-to/use-arduinojson-with-cmake/?utm_source=github&utm_medium=readme)
|
||||||
* Well designed
|
* Well designed
|
||||||
* [Elegant API](http://arduinojson.org/v6/example/?utm_source=github&utm_medium=readme)
|
* [Elegant API](http://arduinojson.org/v6/example/?utm_source=github&utm_medium=readme)
|
||||||
@@ -76,8 +77,8 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
|
|||||||
* [Unit test coverage close to 100%](https://coveralls.io/github/bblanchon/ArduinoJson?branch=6.x)
|
* [Unit test coverage close to 100%](https://coveralls.io/github/bblanchon/ArduinoJson?branch=6.x)
|
||||||
* Continuously tested on
|
* Continuously tested on
|
||||||
* [Visual Studio 2010, 2012, 2013, 2015, 2017, 2019](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
* [Visual Studio 2010, 2012, 2013, 2015, 2017, 2019](https://ci.appveyor.com/project/bblanchon/arduinojson/branch/6.x)
|
||||||
* [GCC 4.4, 4.6, 4.7, 4.8, 4.9, 5, 6, 7, 8](https://travis-ci.org/bblanchon/ArduinoJson)
|
* [GCC 4.4, 4.6, 4.7, 4.8, 4.9, 5, 6, 7, 8, 9, 10](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22)
|
||||||
* [Clang 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 5.0, 6.0, 7, 8](https://travis-ci.org/bblanchon/ArduinoJson)
|
* [Clang 3.5, 3.6, 3.7, 3.8, 3.9, 4.0, 5.0, 6.0, 7, 8, 9, 10](https://github.com/bblanchon/ArduinoJson/actions?query=workflow%3A%22Continuous+Integration%22)
|
||||||
* [Continuously fuzzed with Google OSS Fuzz](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
* [Continuously fuzzed with Google OSS Fuzz](https://bugs.chromium.org/p/oss-fuzz/issues/list?sort=-opened&can=1&q=proj:arduinojson)
|
||||||
* Well documented
|
* Well documented
|
||||||
* [Tutorials](https://arduinojson.org/v6/doc/deserialization/?utm_source=github&utm_medium=readme)
|
* [Tutorials](https://arduinojson.org/v6/doc/deserialization/?utm_source=github&utm_medium=readme)
|
||||||
@@ -85,6 +86,7 @@ ArduinoJson is a C++ JSON library for Arduino and IoT (Internet Of Things).
|
|||||||
* [How-tos](https://arduinojson.org/v6/example/?utm_source=github&utm_medium=readme)
|
* [How-tos](https://arduinojson.org/v6/example/?utm_source=github&utm_medium=readme)
|
||||||
* [FAQ](https://arduinojson.org/v6/faq/?utm_source=github&utm_medium=readme)
|
* [FAQ](https://arduinojson.org/v6/faq/?utm_source=github&utm_medium=readme)
|
||||||
* [Book](https://arduinojson.org/book/?utm_source=github&utm_medium=readme)
|
* [Book](https://arduinojson.org/book/?utm_source=github&utm_medium=readme)
|
||||||
|
* [Changelog](changelog.md)
|
||||||
* Vibrant user community
|
* Vibrant user community
|
||||||
* Most popular of all Arduino libraries on [GitHub](https://github.com/search?o=desc&q=arduino+library&s=stars&type=Repositories) and [PlatformIO](https://platformio.org/lib/search)
|
* Most popular of all Arduino libraries on [GitHub](https://github.com/search?o=desc&q=arduino+library&s=stars&type=Repositories) and [PlatformIO](https://platformio.org/lib/search)
|
||||||
* [Used in hundreds of projects](https://www.hackster.io/search?i=projects&q=arduinojson)
|
* [Used in hundreds of projects](https://www.hackster.io/search?i=projects&q=arduinojson)
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,11 +1,12 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <ArduinoJson/Array/ArrayRef.hpp>
|
#include <ArduinoJson/Array/ArrayRef.hpp>
|
||||||
#include <ArduinoJson/Document/JsonDocument.hpp>
|
#include <ArduinoJson/Document/JsonDocument.hpp>
|
||||||
|
#include <ArduinoJson/Variant/Visitor.hpp>
|
||||||
|
|
||||||
namespace ARDUINOJSON_NAMESPACE {
|
namespace ARDUINOJSON_NAMESPACE {
|
||||||
|
|
||||||
@@ -81,38 +82,6 @@ class ArrayCopier1D : public Visitor<size_t> {
|
|||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t visitObject(const CollectionData&) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t visitFloat(Float) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t visitString(const char*) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t visitRawJson(const char*, size_t) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t visitNegativeInteger(UInt) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t visitPositiveInteger(UInt) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t visitBoolean(bool) {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
size_t visitNull() {
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T* _destination;
|
T* _destination;
|
||||||
size_t _capacity;
|
size_t _capacity;
|
||||||
@@ -132,14 +101,6 @@ class ArrayCopier2D : public Visitor<void> {
|
|||||||
slot = slot->next();
|
slot = slot->next();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void visitObject(const CollectionData&) {}
|
|
||||||
void visitFloat(Float) {}
|
|
||||||
void visitString(const char*) {}
|
|
||||||
void visitRawJson(const char*, size_t) {}
|
|
||||||
void visitNegativeInteger(UInt) {}
|
|
||||||
void visitPositiveInteger(UInt) {}
|
|
||||||
void visitBoolean(bool) {}
|
|
||||||
void visitNull() {}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
T (*_destination)[N1][N2];
|
T (*_destination)[N1][N2];
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -172,7 +172,8 @@
|
|||||||
#endif // ARDUINO
|
#endif // ARDUINO
|
||||||
|
|
||||||
#ifndef ARDUINOJSON_ENABLE_PROGMEM
|
#ifndef ARDUINOJSON_ENABLE_PROGMEM
|
||||||
#ifdef PROGMEM
|
#if defined(PROGMEM) && defined(pgm_read_byte) && defined(pgm_read_dword) && \
|
||||||
|
defined(pgm_read_ptr) && defined(pgm_read_float)
|
||||||
#define ARDUINOJSON_ENABLE_PROGMEM 1
|
#define ARDUINOJSON_ENABLE_PROGMEM 1
|
||||||
#else
|
#else
|
||||||
#define ARDUINOJSON_ENABLE_PROGMEM 0
|
#define ARDUINOJSON_ENABLE_PROGMEM 0
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -26,7 +26,6 @@ class DeserializationError {
|
|||||||
IncompleteInput,
|
IncompleteInput,
|
||||||
InvalidInput,
|
InvalidInput,
|
||||||
NoMemory,
|
NoMemory,
|
||||||
NotSupported,
|
|
||||||
TooDeep
|
TooDeep
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -81,8 +80,8 @@ class DeserializationError {
|
|||||||
|
|
||||||
const char* c_str() const {
|
const char* c_str() const {
|
||||||
static const char* messages[] = {
|
static const char* messages[] = {
|
||||||
"Ok", "EmptyInput", "IncompleteInput", "InvalidInput",
|
"Ok", "EmptyInput", "IncompleteInput",
|
||||||
"NoMemory", "NotSupported", "TooDeep"};
|
"InvalidInput", "NoMemory", "TooDeep"};
|
||||||
ARDUINOJSON_ASSERT(static_cast<size_t>(_code) <
|
ARDUINOJSON_ASSERT(static_cast<size_t>(_code) <
|
||||||
sizeof(messages) / sizeof(messages[0]));
|
sizeof(messages) / sizeof(messages[0]));
|
||||||
return messages[_code];
|
return messages[_code];
|
||||||
@@ -95,11 +94,9 @@ class DeserializationError {
|
|||||||
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s2, "IncompleteInput");
|
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s2, "IncompleteInput");
|
||||||
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s3, "InvalidInput");
|
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s3, "InvalidInput");
|
||||||
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s4, "NoMemory");
|
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s4, "NoMemory");
|
||||||
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s5, "NotSupported");
|
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s5, "TooDeep");
|
||||||
ARDUINOJSON_DEFINE_STATIC_ARRAY(char, s6, "TooDeep");
|
|
||||||
ARDUINOJSON_DEFINE_STATIC_ARRAY(
|
ARDUINOJSON_DEFINE_STATIC_ARRAY(
|
||||||
const char*, messages,
|
const char*, messages, ARDUINOJSON_EXPAND6({s0, s1, s2, s3, s4, s5}));
|
||||||
ARDUINOJSON_EXPAND7({s0, s1, s2, s3, s4, s5, s6}));
|
|
||||||
return ARDUINOJSON_READ_STATIC_ARRAY(const __FlashStringHelper*, messages,
|
return ARDUINOJSON_READ_STATIC_ARRAY(const __FlashStringHelper*, messages,
|
||||||
_code);
|
_code);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -17,11 +17,11 @@ class Filter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool allowArray() const {
|
bool allowArray() const {
|
||||||
return _variant == true || _variant.is<ArrayRef>();
|
return _variant == true || _variant.is<ArrayConstRef>();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool allowObject() const {
|
bool allowObject() const {
|
||||||
return _variant == true || _variant.is<ObjectRef>();
|
return _variant == true || _variant.is<ObjectConstRef>();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool allowValue() const {
|
bool allowValue() const {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -35,6 +35,11 @@ class JsonDocument : public Visitable {
|
|||||||
_data.setNull();
|
_data.setNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
bool is() {
|
||||||
|
return getVariant().template is<T>();
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
bool is() const {
|
bool is() const {
|
||||||
return getVariant().template is<T>();
|
return getVariant().template is<T>();
|
||||||
@@ -310,6 +315,8 @@ class JsonDocument : public Visitable {
|
|||||||
_data.setNull();
|
_data.setNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~JsonDocument() {}
|
||||||
|
|
||||||
void replacePool(MemoryPool pool) {
|
void replacePool(MemoryPool pool) {
|
||||||
_pool = pool;
|
_pool = pool;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -42,8 +42,6 @@ class JsonDeserializer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
JsonDeserializer &operator=(const JsonDeserializer &); // non-copiable
|
|
||||||
|
|
||||||
char current() {
|
char current() {
|
||||||
return _latch.current();
|
return _latch.current();
|
||||||
}
|
}
|
||||||
@@ -386,11 +384,10 @@ class JsonDeserializer {
|
|||||||
return false;
|
return false;
|
||||||
if (codepoint.append(codeunit))
|
if (codepoint.append(codeunit))
|
||||||
Utf8::encodeCodepoint(codepoint.value(), _stringStorage);
|
Utf8::encodeCodepoint(codepoint.value(), _stringStorage);
|
||||||
continue;
|
|
||||||
#else
|
#else
|
||||||
_error = DeserializationError::NotSupported;
|
_stringStorage.append('\\');
|
||||||
return false;
|
|
||||||
#endif
|
#endif
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace char
|
// replace char
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -8,11 +8,6 @@
|
|||||||
|
|
||||||
namespace ARDUINOJSON_NAMESPACE {
|
namespace ARDUINOJSON_NAMESPACE {
|
||||||
|
|
||||||
template <typename TResult>
|
|
||||||
struct Visitor {
|
|
||||||
typedef TResult result_type;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct Visitable {
|
struct Visitable {
|
||||||
// template<Visitor>
|
// template<Visitor>
|
||||||
// void accept(Visitor&) const;
|
// void accept(Visitor&) const;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -40,15 +40,10 @@ class MsgPackDeserializer {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool notSupported() {
|
|
||||||
_error = DeserializationError::NotSupported;
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
template <typename TFilter>
|
template <typename TFilter>
|
||||||
bool parseVariant(VariantData &variant, TFilter filter,
|
bool parseVariant(VariantData &variant, TFilter filter,
|
||||||
NestingLimit nestingLimit) {
|
NestingLimit nestingLimit) {
|
||||||
uint8_t code = 0;
|
uint8_t code = 0; // TODO: why do we need to initialize this variable?
|
||||||
if (!readByte(code))
|
if (!readByte(code))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
@@ -74,40 +69,22 @@ class MsgPackDeserializer {
|
|||||||
variant.setBoolean(true);
|
variant.setBoolean(true);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case 0xc4: // bin 8
|
case 0xc4: // bin 8 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipString<uint8_t>();
|
return skipString<uint8_t>();
|
||||||
|
|
||||||
case 0xc5: // bin 16
|
case 0xc5: // bin 16 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipString<uint16_t>();
|
return skipString<uint16_t>();
|
||||||
|
|
||||||
case 0xc6: // bin 32
|
case 0xc6: // bin 32 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipString<uint32_t>();
|
return skipString<uint32_t>();
|
||||||
|
|
||||||
case 0xc7: // ext 8
|
case 0xc7: // ext 8 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipExt<uint8_t>();
|
return skipExt<uint8_t>();
|
||||||
|
|
||||||
case 0xc8: // ext 16
|
case 0xc8: // ext 16 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipExt<uint16_t>();
|
return skipExt<uint16_t>();
|
||||||
|
|
||||||
case 0xc9: // ext 32
|
case 0xc9: // ext 32 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipExt<uint32_t>();
|
return skipExt<uint32_t>();
|
||||||
|
|
||||||
case 0xca:
|
case 0xca:
|
||||||
@@ -141,14 +118,14 @@ class MsgPackDeserializer {
|
|||||||
return skipBytes(4);
|
return skipBytes(4);
|
||||||
|
|
||||||
case 0xcf:
|
case 0xcf:
|
||||||
if (allowValue)
|
|
||||||
#if ARDUINOJSON_USE_LONG_LONG
|
#if ARDUINOJSON_USE_LONG_LONG
|
||||||
|
if (allowValue)
|
||||||
return readInteger<uint64_t>(variant);
|
return readInteger<uint64_t>(variant);
|
||||||
#else
|
|
||||||
return notSupported();
|
|
||||||
#endif
|
|
||||||
else
|
else
|
||||||
return skipBytes(8);
|
return skipBytes(8);
|
||||||
|
#else
|
||||||
|
return skipBytes(8); // not supported
|
||||||
|
#endif
|
||||||
|
|
||||||
case 0xd0:
|
case 0xd0:
|
||||||
if (allowValue)
|
if (allowValue)
|
||||||
@@ -169,43 +146,28 @@ class MsgPackDeserializer {
|
|||||||
return skipBytes(4);
|
return skipBytes(4);
|
||||||
|
|
||||||
case 0xd3:
|
case 0xd3:
|
||||||
if (allowValue)
|
|
||||||
#if ARDUINOJSON_USE_LONG_LONG
|
#if ARDUINOJSON_USE_LONG_LONG
|
||||||
return readInteger<int64_t>(variant);
|
|
||||||
#else
|
|
||||||
return notSupported();
|
|
||||||
#endif
|
|
||||||
else
|
|
||||||
return skipBytes(8);
|
|
||||||
|
|
||||||
case 0xd4: // fixext 1
|
|
||||||
if (allowValue)
|
if (allowValue)
|
||||||
return notSupported();
|
return readInteger<int64_t>(variant);
|
||||||
else
|
else
|
||||||
|
return skipBytes(8); // not supported
|
||||||
|
#else
|
||||||
|
return skipBytes(8);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
case 0xd4: // fixext 1 (not supported)
|
||||||
return skipBytes(2);
|
return skipBytes(2);
|
||||||
|
|
||||||
case 0xd5: // fixext 2
|
case 0xd5: // fixext 2 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipBytes(3);
|
return skipBytes(3);
|
||||||
|
|
||||||
case 0xd6: // fixext 4
|
case 0xd6: // fixext 4 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipBytes(5);
|
return skipBytes(5);
|
||||||
|
|
||||||
case 0xd7: // fixext 8
|
case 0xd7: // fixext 8 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipBytes(9);
|
return skipBytes(9);
|
||||||
|
|
||||||
case 0xd8: // fixext 16
|
case 0xd8: // fixext 16 (not supported)
|
||||||
if (allowValue)
|
|
||||||
return notSupported();
|
|
||||||
else
|
|
||||||
return skipBytes(17);
|
return skipBytes(17);
|
||||||
|
|
||||||
case 0xd9:
|
case 0xd9:
|
||||||
@@ -508,7 +470,7 @@ class MsgPackDeserializer {
|
|||||||
return readString<uint32_t>();
|
return readString<uint32_t>();
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return notSupported();
|
return invalidInput();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -46,6 +46,20 @@ class MemberProxy : public VariantOperators<MemberProxy<TObject, TStringRef> >,
|
|||||||
template <typename TValue>
|
template <typename TValue>
|
||||||
FORCE_INLINE typename enable_if<!is_array<TValue>::value, this_type &>::type
|
FORCE_INLINE typename enable_if<!is_array<TValue>::value, this_type &>::type
|
||||||
operator=(const TValue &src) {
|
operator=(const TValue &src) {
|
||||||
|
/********************************************************************
|
||||||
|
** THIS IS NOT A BUG IN THE LIBRARY **
|
||||||
|
** -------------------------------- **
|
||||||
|
** Get a compilation error pointing here? **
|
||||||
|
** It doesn't mean the error *is* here. **
|
||||||
|
** Often, it's because you try to assign the wrong value type. **
|
||||||
|
** **
|
||||||
|
** For example: **
|
||||||
|
** char age = 42 **
|
||||||
|
** doc["age"] = age; **
|
||||||
|
** Instead, use: **
|
||||||
|
** int8_t age = 42; **
|
||||||
|
** doc["age"] = age; **
|
||||||
|
********************************************************************/
|
||||||
getOrAddUpstreamMember().set(src);
|
getOrAddUpstreamMember().set(src);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -8,9 +8,11 @@
|
|||||||
|
|
||||||
namespace ARDUINOJSON_NAMESPACE {
|
namespace ARDUINOJSON_NAMESPACE {
|
||||||
|
|
||||||
|
#ifndef isdigit
|
||||||
inline bool isdigit(char c) {
|
inline bool isdigit(char c) {
|
||||||
return '0' <= c && c <= '9';
|
return '0' <= c && c <= '9';
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
inline bool issign(char c) {
|
inline bool issign(char c) {
|
||||||
return '-' == c || c == '+';
|
return '-' == c || c == '+';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,11 +1,10 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#define ARDUINOJSON_EXPAND6(a, b, c, d, e, f) a, b, c, d, e, f
|
#define ARDUINOJSON_EXPAND6(a, b, c, d, e, f) a, b, c, d, e, f
|
||||||
#define ARDUINOJSON_EXPAND7(a, b, c, d, e, f, g) a, b, c, d, e, f, g
|
|
||||||
#define ARDUINOJSON_EXPAND9(a, b, c, d, e, f, g, h, i) a, b, c, d, e, f, g, h, i
|
#define ARDUINOJSON_EXPAND9(a, b, c, d, e, f, g, h, i) a, b, c, d, e, f, g, h, i
|
||||||
#define ARDUINOJSON_EXPAND18(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, \
|
#define ARDUINOJSON_EXPAND18(a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, \
|
||||||
q, r) \
|
q, r) \
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
@@ -12,10 +12,12 @@
|
|||||||
#pragma warning(disable : 4244)
|
#pragma warning(disable : 4244)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
#ifdef __ICCARM__
|
#ifdef __ICCARM__
|
||||||
// Suppress IAR Compiler Warning[Pa093]: implicit conversion from floating point to integer
|
// Suppress IAR Compiler Warning[Pa093]: implicit conversion from floating point to integer
|
||||||
#pragma diag_suppress=Pa093
|
#pragma diag_suppress=Pa093
|
||||||
#endif
|
#endif
|
||||||
|
// clang-format on
|
||||||
|
|
||||||
namespace ARDUINOJSON_NAMESPACE {
|
namespace ARDUINOJSON_NAMESPACE {
|
||||||
|
|
||||||
@@ -38,6 +40,8 @@ struct is_convertible {
|
|||||||
#pragma warning(pop)
|
#pragma warning(pop)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// clang-format off
|
||||||
#ifdef __ICCARM__
|
#ifdef __ICCARM__
|
||||||
#pragma diag_default=Pa093
|
#pragma diag_default=Pa093
|
||||||
#endif
|
#endif
|
||||||
|
// clang-format on
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// ArduinoJson - arduinojson.org
|
// ArduinoJson - arduinojson.org
|
||||||
// Copyright Benoit Blanchon 2014-2020
|
// Copyright Benoit Blanchon 2014-2021
|
||||||
// MIT License
|
// MIT License
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user