-
-
Notifications
You must be signed in to change notification settings - Fork 36
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
Not working on none WiFi ethernet connections #27
Comments
Hey, Thanks for your comment.
Cheers |
"WiFiServer" is a poorly chosen name. It also works with the wired ethernet without any problems. A better name would be "EthernetServer" or something similar. |
Many thanks @LennartHennigs for your very useful library, and @Mynogs for starting this issue. I have the same problem and would like to support the solution above, perhaps with two minor changes:
To me |
Hey @Arnold-n,
...in the Cheers |
Thanks @LennartHennigs - and indeed I agree with @Mynogs that the name In my code I use
and setup() uses ethernet if available and if a connection can be made, or else it falls back to WiFi. In both cases telnet is working fine, even after a dis- and reconnect.
What I didn't achieve yet is a change from ethernet to WiFi if ethernet gets disconnected after setup() finishes (and back when it is reconnected). For anyone using the code above for a W5500, it is important to apply this patch to the BSP if the W5500 may be absent or unpowered, to avoid a WDT crash upon boot. |
In the function "ESPTelnet::begin" stands:
if (WiFi.status() == WL_CONNECTED || _isIPSet(WiFi.softAPIP())) {
This means that ESPTenet only works if there is a WiFi connection. I use wired ethernet on my board.
I fixed the problem like this:
It works, but it's not pretty...
Greetings
Mynogs
The text was updated successfully, but these errors were encountered: