wizche / m5paper-weather

Weather dashboard for m5paper
23 stars 8 forks source link

JSON library compile issue #5

Open dwightkelly opened 6 months ago

dwightkelly commented 6 months ago

I can't figure out how solve this compile error:

In file included from .pio/libdeps/m5stack-paper/ArduinoJson/src/ArduinoJson.hpp:42,
                 from .pio/libdeps/m5stack-paper/ArduinoJson/src/ArduinoJson.h:9,
                 from src/Weather.hpp:25,
                 from src/Data.hpp:24,
                 from src/main.cpp:26:
.pio/libdeps/m5stack-paper/ArduinoJson/src/ArduinoJson/Variant/ConverterImpl.hpp: In instantiation of 'static T ArduinoJson::V6215PB2::Converter<T, Enable>::fromJson(ArduinoJson::V6215PB2::JsonVariantConst) [with T = char*; Enable = void]':
.pio/libdeps/m5stack-paper/ArduinoJson/src/ArduinoJson/Variant/VariantRefBase.hpp:53:34:   required from 'typename ArduinoJson::V6215PB2::detail::enable_if<(! ArduinoJson::V6215PB2::detail::ConverterNeedsWriteableRef<T>::value), T>::type ArduinoJson::V6215PB2::detail::VariantRefBase<TDerived>::as() const [with T = char*; TDerived = ArduinoJson::V6215PB2::detail::MemberProxy<ArduinoJson::V6215PB2::detail::ElementProxy<ArduinoJson::V6215PB2::detail::MemberProxy<ArduinoJson::V6215PB2::detail::MemberProxy<ArduinoJson::V6215PB2::JsonObject, const char*>, const char*> >, const char*>; typename ArduinoJson::V6215PB2::detail::enable_if<(! ArduinoJson::V6215PB2::detail::ConverterNeedsWriteableRef<T>::value), T>::type = char*]'
src/Weather.hpp:129:75:   required from here
.pio/libdeps/m5stack-paper/ArduinoJson/src/ArduinoJson/Variant/ConverterImpl.hpp:32:20: error: no matching function for call to 'convertFromJson(ArduinoJson::V6215PB2::JsonVariantConst&, char*&)'
     convertFromJson(src, result);  // Error here? See https://arduinojson.org/v6/unsupported-as/
     ~~~~~~~~~~~~~~~^~~~~~~~~~~~~
ZeFish commented 2 months ago

Just tried and had the same... don't know how to debug this