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

Espressif ESP32 3.0.0 not handling Print capability? #43

Closed thorathome closed 3 months ago

thorathome commented 3 months ago

Hi. Thanks.

I'm using the Arduino IDE most recent version on Win 11 and just moved to Espressif's ESP32 3.0.0 Board package from 2.0.17.

Getting new error messages not seen with previous Espressif ESP32 2.0.x versions. Been using your TelnetStream library for years. Love it!

Any thoughts?
Thanks again.

c:\Users\thor\Dropbox\My Documents\Arduino\libraries\NetApiHelpers\src/ServerTemplate.h: In instantiation of 'class ServerTemplate<NetworkServer, NetworkClient>':
c:\Users\thor\Dropbox\My Documents\Arduino\libraries\TelnetStream\src/TelnetStream.h:27:13:   required from here
c:\Users\thor\Dropbox\My Documents\Arduino\libraries\NetApiHelpers\src/ServerTemplate.h:116:16: error: type 'Print' is not a base type for type 'ServerTemplate<NetworkServer, NetworkClient>'
  116 |   using Print::write;
      |                ^~~~~
c:\Users\thor\Dropbox\My Documents\Arduino\libraries\NetApiHelpers\src/ServerTemplate.h:70:18: error: 'size_t ServerTemplate<TServer, TClient>::write(uint8_t) [with TServer = NetworkServer; TClient = NetworkClient; size_t = unsigned int; uint8_t = unsigned char]' marked 'override', but does not override
   70 |   virtual size_t write(uint8_t b) override {
      |                  ^~~~~
c:\Users\thor\Dropbox\My Documents\Arduino\libraries\NetApiHelpers\src/ServerTemplate.h:74:18: error: 'size_t ServerTemplate<TServer, TClient>::write(const uint8_t*, size_t) [with TServer = NetworkServer; TClient = NetworkClient; size_t = unsigned int; uint8_t = unsigned char]' marked 'override', but does not override
   74 |   virtual size_t write(const uint8_t *buf, size_t size) override {
      |                  ^~~~~
c:\Users\thor\Dropbox\My Documents\Arduino\libraries\NetApiHelpers\src/ServerTemplate.h:118:16: error: 'void ServerTemplate<TServer, TClient>::flush() [with TServer = NetworkServer; TClient = NetworkClient]' marked 'override', but does not override
  118 |   virtual void flush() override {
JAndrassy commented 3 months ago

duplicate of https://github.com/JAndrassy/TelnetStream/issues/42

thorathome commented 3 months ago

YOU are unbelievably responsive! Thank you for the immediate fix.

Compiles working again. TelnetStream working again. I am amazed.

Much appreciated and well done.

From: Juraj Andrássy @.> Sent: Wednesday, May 29, 2024 3:48 PM To: JAndrassy/TelnetStream @.> Cc: Thor Johnson @.>; Author @.> Subject: Re: [JAndrassy/TelnetStream] Espressif ESP32 3.0.0 not handling Print capability? (Issue #43)

Closed #43 https://github.com/JAndrassy/TelnetStream/issues/43 as completed.

— Reply to this email directly, view it on GitHub https://github.com/JAndrassy/TelnetStream/issues/43#event-12976577139 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AAVQ3CIZ62H73HXX2SZC3HLZEYWFRAVCNFSM6AAAAABIPRKLIWVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJSHE3TMNJXG4YTGOI . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AAVQ3CIMYPKIONG6TCXLALTZEYWFRA5CNFSM6AAAAABIPRKLIWWGG33NNVSW45C7OR4XAZNWJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XKUY3PNVWWK3TUL5UWJTYAAAAAGBLW3JZQ.gif Message ID: @. @.> >