forked from bblanchon/ArduinoJson
Show a link to the doc when user passes an unsupported input type
This commit is contained in:
@ -8,6 +8,7 @@ HEAD
|
|||||||
* Fix double lookup in `to<JsonVariant>()`
|
* Fix double lookup in `to<JsonVariant>()`
|
||||||
* Fix double call to `size()` in `serializeMsgPack()`
|
* Fix double call to `size()` in `serializeMsgPack()`
|
||||||
* Include `ARDUINOJSON_SLOT_OFFSET_SIZE` in the namespace name
|
* Include `ARDUINOJSON_SLOT_OFFSET_SIZE` in the namespace name
|
||||||
|
* Show a link to the documentation when user passes an unsupported input type
|
||||||
|
|
||||||
v6.21.2 (2023-04-12)
|
v6.21.2 (2023-04-12)
|
||||||
-------
|
-------
|
||||||
|
@ -18,7 +18,9 @@ struct Reader {
|
|||||||
Reader(TSource& source) : source_(&source) {}
|
Reader(TSource& source) : source_(&source) {}
|
||||||
|
|
||||||
int read() {
|
int read() {
|
||||||
return source_->read(); // Error here? You passed an unsupported input type
|
// clang-format off
|
||||||
|
return source_->read(); // Error here? See https://arduinojson.org/v6/invalid-input/
|
||||||
|
// clang-format on
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t readBytes(char* buffer, size_t length) {
|
size_t readBytes(char* buffer, size_t length) {
|
||||||
|
Reference in New Issue
Block a user