I tried running this sketch on my M5Paper V1.1 and am getting this errors. exit status 1 Error compiling for board M5Paper. I have all the libraries recommended and proper board selected M5 Arduino board> M5Paper. Please help? Arduino: 1.8.19 (Windows 10), Board: "M5Paper, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 16MB (128Mb), 1500000, Core 1, Core 1, None, Disabled" \\weather.ino.cpp" -o "C:\\Users\\johnn\\AppData\\Local\\Temp\\arduino_build_670619\\sketch\\weather.ino.cpp.o" In file included from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:42, from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9, from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Weather.h:25, from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Data.h:24, from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\weather.ino:26: C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp: In instantiation of 'static T ArduinoJson::V6214PB2::Converter::fromJson(ArduinoJson::V6214PB2::JsonVariantConst) [with T = char*; Enable = void]': C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:34: required from 'typename ArduinoJson::V6214PB2::detail::enable_if::type ArduinoJson::V6214PB2::detail::VariantRefBase::as() const [with T = char*; TDerived = ArduinoJson::V6214PB2::detail::MemberProxy; typename ArduinoJson::V6214PB2::detail::enable_if::type = char*]' D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Weather.h:115:75: required from here C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:32:20: error: no matching function for call to 'convertFromJson(ArduinoJson::V6214PB2::JsonVariantConst&, char*&)' convertFromJson(src, result); // Error here? See arduinojson.org/v6/unsupported-as/ ~~~~~~~~~~~~~~~^~~~~~~~~~~~~ C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:275:13: note: candidate: 'void ArduinoJson::V6214PB2::convertFromJson(ArduinoJson::V6214PB2::JsonVariantConst, String&)' inline void convertFromJson(JsonVariantConst src, ::String& dst) { ^~~~~~~~~~~~~~~ C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:275:13: note: conversion of argument 2 would be ill-formed: C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:32:26: error: cannot bind non-const lvalue reference of type 'String&' to an rvalue of type 'String' convertFromJson(src, result); // Error here? See arduinojson.org/v6/unsupported-as/ ^~~~~~ In file included from C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/Arduino.h:176, from C:\Users\johnn\AppData\Local\Temp\arduino_build_670619\sketch\weather.ino.cpp:1: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/WString.h:59:9: note: after user-defined conversion: 'String::String(const char*)' String(const char *cstr = ""); ^~~~~~ In file included from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:42, from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9, from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Weather.h:25, from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Data.h:24, from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\weather.ino:26: C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:291:13: note: candidate: 'void ArduinoJson::V6214PB2::convertFromJson(ArduinoJson::V6214PB2::JsonVariantConst, std::__cxx11::string&)' inline void convertFromJson(JsonVariantConst src, std::string& dst) { ^~~~~~~~~~~~~~~ C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:291:13: note: conversion of argument 2 would be ill-formed: C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:32:26: error: cannot bind non-const lvalue reference of type 'std::__cxx11::string&' {aka 'std::__cxx11::basic_string&'} to an rvalue of type 'std::__cxx11::string' {aka 'std::__cxx11::basic_string'} convertFromJson(src, result); // Error here? See arduinojson.org/v6/unsupported-as/ ^~~~~~ In file included from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\string:52, from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\stdexcept:39, from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\array:39, from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\tuple:39, from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\functional:54, from C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/HardwareSerial.h:49, from C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/Arduino.h:184, from C:\Users\johnn\AppData\Local\Temp\arduino_build_670619\sketch\weather.ino.cpp:1: c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\bits\basic_string.h:514:7: note: after user-defined conversion: 'std::__cxx11::basic_string::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]' basic_string(const _CharT* __s, const _Alloc& __a = _Alloc()) ^~~~~~~~~~~~ Multiple libraries were found for "SD.h" Used: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SD Not used: C:\Program Files (x86)\Arduino\libraries\SD Multiple libraries were found for "WiFiClient.h" Used: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\WiFi Not used: C:\Program Files (x86)\Arduino\libraries\WiFi Not used: C:\Users\johnn\Documents\Arduino\libraries\WiFi101 Not used: C:\Users\johnn\Documents\Arduino\libraries\WiFiNINA Using library M5EPD at version 0.1.5 in folder: C:\Users\johnn\Documents\Arduino\libraries\M5EPD Using library Wire at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\Wire Using library SPI at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SPI Using library FS at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\FS Using library SD at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SD Using library SPIFFS at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SPIFFS Using library HTTPClient at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\HTTPClient Using library WiFi at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\WiFi Using library WiFiClientSecure at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\WiFiClientSecure Using library ArduinoJson at version 6.21.4 in folder: C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson Using library Time at version 1.6.1 in folder: C:\Users\johnn\Documents\Arduino\libraries\Time Using library MoonRise at version 2.0.4 in folder: C:\Users\johnn\Documents\Arduino\libraries\MoonRise exit status 1 Error compiling for board M5Paper.
I tried running this sketch on my M5Paper V1.1 and am getting this errors. exit status 1
Error compiling for board M5Paper.
I have all the libraries recommended and proper board selected M5 Arduino board> M5Paper. Please help? Arduino: 1.8.19 (Windows 10), Board: "M5Paper, Enabled, Default (2 x 6.5 MB app, 3.6 MB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 16MB (128Mb), 1500000, Core 1, Core 1, None, Disabled"
\\weather.ino.cpp" -o "C:\\Users\\johnn\\AppData\\Local\\Temp\\arduino_build_670619\\sketch\\weather.ino.cpp.o"
In file included from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:42,
from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Weather.h:25,
from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Data.h:24,
from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\weather.ino:26:
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp: In instantiation of 'static T ArduinoJson::V6214PB2::Converter::fromJson(ArduinoJson::V6214PB2::JsonVariantConst) [with T = char*; Enable = void]':
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/VariantRefBase.hpp:53:34: required from 'typename ArduinoJson::V6214PB2::detail::enable_if::type ArduinoJson::V6214PB2::detail::VariantRefBase::as() const [with T = char*; TDerived = ArduinoJson::V6214PB2::detail::MemberProxy; typename ArduinoJson::V6214PB2::detail::enable_if::type = char*]'
D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Weather.h:115:75: required from here
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:32:20: error: no matching function for call to 'convertFromJson(ArduinoJson::V6214PB2::JsonVariantConst&, char*&)'
convertFromJson(src, result); // Error here? See arduinojson.org/v6/unsupported-as/
~~~~~~~~~~~~~~~^~~~~~~~~~~~~
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:275:13: note: candidate: 'void ArduinoJson::V6214PB2::convertFromJson(ArduinoJson::V6214PB2::JsonVariantConst, String&)'
inline void convertFromJson(JsonVariantConst src, ::String& dst) {
^~~~~~~~~~~~~~~
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:275:13: note: conversion of argument 2 would be ill-formed:
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:32:26: error: cannot bind non-const lvalue reference of type 'String&' to an rvalue of type 'String'
convertFromJson(src, result); // Error here? See arduinojson.org/v6/unsupported-as/
^~~~~~
In file included from C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/Arduino.h:176,
from C:\Users\johnn\AppData\Local\Temp\arduino_build_670619\sketch\weather.ino.cpp:1:
C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/WString.h:59:9: note: after user-defined conversion: 'String::String(const char*)'
String(const char *cstr = "");
^~~~~~
In file included from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.hpp:42,
from C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson.h:9,
from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Weather.h:25,
from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\Data.h:24,
from D:\Downloads\TTGOwatch+M5Stack stuff\M5Paper stuff\M5PaperWeather\M5PaperWeather\weather\weather.ino:26:
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:291:13: note: candidate: 'void ArduinoJson::V6214PB2::convertFromJson(ArduinoJson::V6214PB2::JsonVariantConst, std::__cxx11::string&)'
inline void convertFromJson(JsonVariantConst src, std::string& dst) {
^~~~~~~~~~~~~~~
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:291:13: note: conversion of argument 2 would be ill-formed:
C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson\src/ArduinoJson/Variant/ConverterImpl.hpp:32:26: error: cannot bind non-const lvalue reference of type 'std::__cxx11::string&' {aka 'std::__cxx11::basic_string&'} to an rvalue of type 'std::__cxx11::string' {aka 'std::__cxx11::basic_string'}
convertFromJson(src, result); // Error here? See arduinojson.org/v6/unsupported-as/
^~~~~~
In file included from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\string:52,
from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\stdexcept:39,
from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\array:39,
from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\tuple:39,
from c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\functional:54,
from C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/HardwareSerial.h:49,
from C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\cores\esp32/Arduino.h:184,
from C:\Users\johnn\AppData\Local\Temp\arduino_build_670619\sketch\weather.ino.cpp:1:
c:\users\johnn\appdata\local\arduino15\packages\m5stack\tools\xtensa-esp32-elf-gcc\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\include\c++\8.4.0\bits\basic_string.h:514:7: note: after user-defined conversion: 'std::__cxx11::basic_string::basic_string(const _CharT*, const _Alloc&) [with _CharT = char; _Traits = std::char_traits; _Alloc = std::allocator]'
basic_string(const _CharT* __s, const _Alloc& __a = _Alloc())
^~~~~~~~~~~~
Multiple libraries were found for "SD.h"
Used: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Multiple libraries were found for "WiFiClient.h"
Used: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
Not used: C:\Users\johnn\Documents\Arduino\libraries\WiFi101
Not used: C:\Users\johnn\Documents\Arduino\libraries\WiFiNINA
Using library M5EPD at version 0.1.5 in folder: C:\Users\johnn\Documents\Arduino\libraries\M5EPD
Using library Wire at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\Wire
Using library SPI at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SPI
Using library FS at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\FS
Using library SD at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SD
Using library SPIFFS at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\SPIFFS
Using library HTTPClient at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\HTTPClient
Using library WiFi at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\WiFi
Using library WiFiClientSecure at version 2.0.0 in folder: C:\Users\johnn\AppData\Local\Arduino15\packages\m5stack\hardware\esp32\2.0.9\libraries\WiFiClientSecure
Using library ArduinoJson at version 6.21.4 in folder: C:\Users\johnn\Documents\Arduino\libraries\ArduinoJson
Using library Time at version 1.6.1 in folder: C:\Users\johnn\Documents\Arduino\libraries\Time
Using library MoonRise at version 2.0.4 in folder: C:\Users\johnn\Documents\Arduino\libraries\MoonRise
exit status 1
Error compiling for board M5Paper.