From 12f9aac4ea472bbdaf8bfd919d3c9a2f552b5097 Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Tue, 23 Apr 2019 08:46:18 +0200 Subject: [PATCH] Fixed "no matching function for call to write(uint8_t)" (closes #972) --- CHANGELOG.md | 1 + src/ArduinoJson/Configuration.hpp | 18 ++++++++++---- src/ArduinoJson/Serialization/serialize.hpp | 26 +++++++++++++-------- 3 files changed, 31 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e70dbd7a..51c38f65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ HEAD * Fixed error "attributes are not allowed on a function-definition" * Fixed `deserializeJson()` not being picky enough (issue #969) +* Fixed error "no matching function for call to write(uint8_t)" (issue #972) v6.10.0 (2019-03-22) ------- diff --git a/src/ArduinoJson/Configuration.hpp b/src/ArduinoJson/Configuration.hpp index c34264bd..662c4d7f 100644 --- a/src/ArduinoJson/Configuration.hpp +++ b/src/ArduinoJson/Configuration.hpp @@ -88,28 +88,38 @@ #ifdef ARDUINO -// Enable support for Arduino String +// Enable support for Arduino's String class #ifndef ARDUINOJSON_ENABLE_ARDUINO_STRING #define ARDUINOJSON_ENABLE_ARDUINO_STRING 1 #endif -// Enable support for Arduino Stream +// Enable support for Arduino's Stream class #ifndef ARDUINOJSON_ENABLE_ARDUINO_STREAM #define ARDUINOJSON_ENABLE_ARDUINO_STREAM 1 #endif +// Enable support for Arduino's Print class +#ifndef ARDUINOJSON_ENABLE_ARDUINO_PRINT +#define ARDUINOJSON_ENABLE_ARDUINO_PRINT 1 +#endif + #else // ARDUINO -// Disable support for Arduino String +// Enable support for Arduino's String class #ifndef ARDUINOJSON_ENABLE_ARDUINO_STRING #define ARDUINOJSON_ENABLE_ARDUINO_STRING 0 #endif -// Disable support for Arduino Stream +// Enable support for Arduino's Stream class #ifndef ARDUINOJSON_ENABLE_ARDUINO_STREAM #define ARDUINOJSON_ENABLE_ARDUINO_STREAM 0 #endif +// Enable support for Arduino's Print class +#ifndef ARDUINOJSON_ENABLE_ARDUINO_PRINT +#define ARDUINOJSON_ENABLE_ARDUINO_PRINT 0 +#endif + #endif // ARDUINO #ifndef ARDUINOJSON_ENABLE_PROGMEM diff --git a/src/ArduinoJson/Serialization/serialize.hpp b/src/ArduinoJson/Serialization/serialize.hpp index ae47d1fb..dfdd8373 100644 --- a/src/ArduinoJson/Serialization/serialize.hpp +++ b/src/ArduinoJson/Serialization/serialize.hpp @@ -14,32 +14,38 @@ namespace ARDUINOJSON_NAMESPACE { template