JAndrassy / TelnetStream

Arduino Stream implementation over Telnet for OTA logging and debugging
GNU Affero General Public License v3.0
164 stars 17 forks source link

Error compiling on ESP32 with last version 1.3 of TelnetStream #38

Closed rin67630 closed 8 months ago

rin67630 commented 8 months ago

Upon compiling for an ESP32 (TTGO T1) I get this flow of errors:


In file included from /Volumes/Data/Activities/3_Maker/libraries/NetApiHelpers/src/ArduinoWiFiServer.h:48,
                 from /Volumes/Data/Activities/3_Maker/libraries/TelnetStream/src/NetTypes.h:38,
                 from /Volumes/Data/Activities/3_Maker/libraries/TelnetStream/src/TelnetStream.h:22,
                 from /Volumes/Data/Activities/3_Maker/ESP32_Victron_on_Steroids_V04.2024/a_Libs_Vars.ino:56:
/Volumes/Data/Activities/3_Maker/libraries/NetApiHelpers/src/ServerTemplate.h: In instantiation of 'class ServerTemplate<WiFiServer, WiFiClient>':
/Volumes/Data/Activities/3_Maker/libraries/TelnetStream/src/TelnetStream.h:27:13:   required from here
/Volumes/Data/Activities/3_Maker/libraries/NetApiHelpers/src/ServerTemplate.h:118:16: error: 'void ServerTemplate<TServer, TClient>::flush() [with TServer = WiFiServer; TClient = WiFiClient]' marked 'override', but does not override
   virtual void flush() override {
                ^~~~~
/Volumes/Data/Activities/3_Maker/ESP32_Victron_on_Steroids_V04.2024/f_Stats.ino: In function 'void statsRun()':
/Volumes/Data/Activities/3_Maker/ESP32_Victron_on_Steroids_V04.2024/f_Stats.ino:158:32: warning: 'DynamicJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations]
         DynamicJsonDocument doc(1024);
                                ^
In file included from /Volumes/Data/Activities/3_Maker/libraries/ArduinoJson/src/ArduinoJson.hpp:53,
                 from /Volumes/Data/Activities/3_Maker/libraries/ArduinoJson/src/ArduinoJson.h:9,
                 from /Volumes/Data/Activities/3_Maker/ESP32_Victron_on_Steroids_V04.2024/a_Libs_Vars.ino:31:
/Volumes/Data/Activities/3_Maker/libraries/ArduinoJson/src/ArduinoJson/compatibility.hpp:125:58: note: declared here
 class ARDUINOJSON_DEPRECATED("use JsonDocument instead") DynamicJsonDocument
                                                          ^~~~~~~~~~~~~~~~~~~

Compiling with the previous version 1.2.6 it works fine. Can you please check? Thank you.

JAndrassy commented 8 months ago

update the esp32 core to at least 2.0.3 (May 2022)