-
Notifications
You must be signed in to change notification settings - Fork 265
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
Fix enum redeclaration issue when using WiFi and Ethernet for EthernetLinkStatus #260
Comments
why would you use this Ethernet library together with the Pico Core WiFi library? as you know, there is a library for W5500 which works over same LwIP stack as WiFi in Pico Core |
I see your other question on the issue I opened for the Pico. |
are you sure the difference matters for your sketch? can't you use |
The main issue is in the configuration of the interface (and yes I do use accept). The goal was to add wifi support to replace a XBee on my project (and still use Ethernet as the main communication path to the device). |
WiFiServer doesn't have |
Thanks for the link, It should help. |
Wiznet5500lwIPc Ethernet works fine for standard TCP connectivity, but UDP
When using the standard Ethernet library with EternetUDP, the discovery works. |
So after a lot more time spend on this, turn out the code works, but the lwIP_w5500 library is more than 20 times slower than the standard Arduino Ethernet library with a W5500. |
When using other library that also declare this enum there is a conflict and triggers a compiler error.
Adding the
#ifdef
fixes the issue as if it's already declared in another include (arduino pico code for wifi from earlephilhower for example) there will not be a re-declaration.The text was updated successfully, but these errors were encountered: