Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON library compile issue #5

Open
dwightkelly opened this issue Apr 28, 2024 · 1 comment
Open

JSON library compile issue #5

dwightkelly opened this issue Apr 28, 2024 · 1 comment

Comments

@dwightkelly
Copy link

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
Copy link

ZeFish commented Aug 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants