JAndrassy/TelnetStream

Arduino OPTA

MauroKTM opened this issue · 3 comments

it returns error when compile for Arduino OPTA

`/Users/xxx/Documents/Arduino/libraries/TelnetStream/src/TelnetStream.cpp: In member function 'boolean TelnetStreamClass::disconnected()':
/Users/xxx/Documents/Arduino/libraries/TelnetStream/src/TelnetStream.cpp:27:7: error: no match for 'operator!' (operand type is 'arduino::EthernetServer')
if (!server)
^~~~~~~
/Users/xxx/Documents/Arduino/libraries/TelnetStream/src/TelnetStream.cpp:27:7: note: candidate: operator!(bool)
/Users/xxx/Documents/Arduino/libraries/TelnetStream/src/TelnetStream.cpp:27:7: note: no known conversion for argument 1 from 'arduino::EthernetServer' to 'bool'

exit status 1

Compilation error: exit status 1`

modify the #if in boolean TelnetStreamClass::disconnected()

to

#if __has_include(<WiFiNINA.h>) || __has_include(<WiFi101.h>) || __has_include(<PortentaEthernet.h>)

It works.

thank you!

It compiles now, but it seems not starting any telnet server.
Any suggestion?