doctormord / ESP8266_EPD_Weather_Google_Calendar

Linking an ESP8266 with an EPD to dispay weather data and appointments from Google calendar
50 stars 10 forks source link

Compilation error #2

Closed dedabrane closed 1 year ago

dedabrane commented 1 year ago

Hi! After installing required libraries I encountered some issues regarding missing Adafruit libraries, but I think I managed to solve that. I still cannot compile this without an error, and unfortunately I am not capable of solving this on my own... Here is the whole error code during compilation:

WARNING: library Timezone claims to run on avr architecture(s) and may be incompatible with your current board which runs on esp8266 architecture(s). In file included from c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:11, from c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9, from C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:24: c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: error: no matching function for call to 'ArduinoJson::JsonVariant::as() const' 283 | return it != end() ? it->value.as() | ~~~~^~ In file included from c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\jsonbuffer.hpp:12, from c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Deserialization/JsonParser.hpp:7, from c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonBufferBase.hpp:7, from c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/DynamicJsonBuffer.hpp:7, from c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:9, from c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9, from C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:24: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:150:3: note: candidate: 'template const typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsIntegral::value, Integer>::type ArduinoJson::JsonVariant::as() const' 150 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:150:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template const typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsIntegral::value, Integer>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:150:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, long long int>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:156:3: note: candidate: 'template const typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<T, bool>::value, T>::type ArduinoJson::JsonVariant::as() const' 156 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:156:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template const typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<T, bool>::value, T>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:156:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, long long int>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:165:3: note: candidate: 'template const typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsFloatingPoint::value, T>::type ArduinoJson::JsonVariant::as() const' 165 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:165:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template const typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsFloatingPoint::value, T>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:165:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, long long int>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:175:3: note: candidate: 'template typename ArduinoJson::Internals::EnableIf<(ArduinoJson::Internals::IsSame<T, const char>::value || ArduinoJson::Internals::IsSame<T, char>::value), const char>::type ArduinoJson::JsonVariant::as() const' 175 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:175:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template typename ArduinoJson::Internals::EnableIf<(ArduinoJson::Internals::IsSame<T, const char>::value || ArduinoJson::Internals::IsSame<T, char>::value), const char>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:175:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, const char>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:183:3: note: candidate: 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::StringTraits::has_append, T>::type ArduinoJson::JsonVariant::as() const' 183 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:183:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::StringTraits::has_append, T>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:183:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, long long int>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:198:3: note: candidate: 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, ArduinoJson::JsonArray>::value, ArduinoJson::JsonArray&>::type ArduinoJson::JsonVariant::as() const' 198 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:198:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, ArduinoJson::JsonArray>::value, ArduinoJson::JsonArray&>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:198:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, ArduinoJson::JsonArray&>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:208:3: note: candidate: 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, const ArduinoJson::JsonArray>::value, const ArduinoJson::JsonArray&>::type ArduinoJson::JsonVariant::as() const' 208 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:208:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, const ArduinoJson::JsonArray>::value, const ArduinoJson::JsonArray&>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:208:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, const ArduinoJson::JsonArray&>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:219:3: note: candidate: 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, ArduinoJson::JsonObject>::value, ArduinoJson::JsonObject&>::type ArduinoJson::JsonVariant::as() const' 219 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:219:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, ArduinoJson::JsonObject>::value, ArduinoJson::JsonObject&>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:219:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, ArduinoJson::JsonObject&>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:230:3: note: candidate: 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, const ArduinoJson::JsonObject>::value, const ArduinoJson::JsonObject&>::type ArduinoJson::JsonVariant::as() const' 230 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:230:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<typename ArduinoJson::Internals::RemoveReference::type, const ArduinoJson::JsonObject>::value, const ArduinoJson::JsonObject&>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:230:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, const ArduinoJson::JsonObject&>' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp: In instantiation of 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:238:3: note: candidate: 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<T, ArduinoJson::JsonVariant>::value, T>::type ArduinoJson::JsonVariant::as() const' 238 | as() const { | ^~ c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:238:3: note: template argument deduction/substitution failed: c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp: In substitution of 'template typename ArduinoJson::Internals::EnableIf<ArduinoJson::Internals::IsSame<T, ArduinoJson::JsonVariant>::value, T>::type ArduinoJson::JsonVariant::as() const [with T = long long int]': c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:283:46: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get_impl(TStringRef) const [with TStringRef = const char; TValue = long long int; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObject.hpp:166:38: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::JsonObject::get(TString) const [with TValue = long long int; TString = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\Users\Admin\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/JsonObjectSubscript.hpp:59:31: required from 'typename ArduinoJson::Internals::JsonVariantAs::type ArduinoJson::Internals::JsonObjectSubscript::as() const [with TValue = long long int; TStringRef = const char; typename ArduinoJson::Internals::JsonVariantAs::type = long long int]' c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariantCasts.hpp:50:34: required from 'ArduinoJson::Internals::JsonVariantCasts::operator T() const [with T = long long int; TImpl = ArduinoJson::Internals::JsonObjectSubscript<const char*>]' C:\Users\Admin\Documents\Arduino\ESP8266_EPD_Weather_Google_Calendar\ESP8266_EPD_Weather_Google_Calendar.ino:679:40: required from here c:\users\admin\documents\arduino\libraries\arduinojson\src\arduinojson\JsonVariant.hpp:238:3: error: no type named 'type' in 'struct ArduinoJson::Internals::EnableIf<false, long long int>'

exit status 1

Compilation error: exit status 1

Feba97 commented 1 year ago

I have exactly the same issue

dedabrane commented 1 year ago

@Feba97 hi! I honestly don't know how I fixed it, I think it was a version problem somewhere and installation from scratch did the trick. Anyway, I turned to that other project because with this one I later had an issue with HTTPSRedirect and connecting to Google, so I gave up.