Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino OPTA #30

Closed
MauroKTM opened this issue Jul 20, 2023 · 3 comments
Closed

Arduino OPTA #30

MauroKTM opened this issue Jul 20, 2023 · 3 comments

Comments

@MauroKTM
Copy link

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`

@JAndrassy
Copy link
Owner

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

to

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

@MauroKTM
Copy link
Author

It works.

thank you!

@MauroKTM
Copy link
Author

MauroKTM commented Jul 21, 2023

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

@MauroKTM MauroKTM mentioned this issue Jul 21, 2023
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants