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

Olimex ESP32-Gateway Ethernet support? #443

Closed
hrodenburg opened this issue Jun 9, 2019 · 2 comments
Closed

Olimex ESP32-Gateway Ethernet support? #443

hrodenburg opened this issue Jun 9, 2019 · 2 comments

Comments

@hrodenburg
Copy link

Hi,

I'm trying to use this library on an Olimex ESP32-Gateway using it's integrated wired ethernet connection. However, it seems that the LAN chip is not supported at this time. If I'm correct, this board is using an LAN8710 as ethernet chip. The library seems to be een extension on the default wifi library used on an ESP32. The example code works without a problem, but I cannot get it to work with this websockets library. Is there any chance to get this working together?

BTW, I tried to get this working myself (offcourse), but unfortunately I'm not experienced enough to get this solved.
Any hints or help is much appreciated!

@Links2004
Copy link
Owner

Links2004 commented Jun 9, 2019

you can try to change the includes here:
https://github.com/Links2004/arduinoWebSockets/blob/master/src/WebSockets.h#L120
and here:
https://github.com/Links2004/arduinoWebSockets/blob/master/src/WebSockets.h#L167

to

#include <ETH.h>

if the LAN8710 lib is full compatible to WiFiClient / WiFiClientSecure than that is all that is needed.
if its not compatible you will get a compile error or the connection will not work.
if so more adaption is needed.

Some side note:
not sure why Olimex did not integrate the LAN chip in the lwip framwork of the ESP then it had worked out of the box, side by side with the WiFi connection.

@hrodenburg
Copy link
Author

Thanks for your suggestion. Changing those lines indeed made it work, so I'm pretty happy with that!

And regarding your side-note, that sounds to make sense.
I've selected the board because it has integrated ethernet connection and therefore no extra wiring and external ethernet module is needed.

Thanks for helping out!

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