-->
Page 1 of 1

Help understanding (new?) ethernet with W5500 module

PostPosted: Sat Jun 12, 2021 2:31 am
by pattagghiu
Hello,
esp8266 with w5500 module here :)
with core 3.0.0 w5500 and new ethernet library should be included, but i'm having hard time understanding how structurally it should work.
I created a test script, just included
#include <SPI.h>
#include <W5500lwIP.h>

and i could set up ethernet. That's good!
So why and when do i need the include of the ethernet librry itself?
#include <Ethernet.h>

Then i tried a simple NTP client.
Tried with
#include <EthernetUdp.h>

No luck. The dns name of the ntp server is not resolved.
I tried with
#include <WiFiUdp.h>

Same result, no dns resolution.
So i tried just to resolve dns names through lwip itself. Success with the dns_gethostbyname() function!

But ethernetudp (with underlying ethernet) and wifiudp (with underlying ESP8266wifi) resolve dns names with other functions not working.

So basically my question is: how do these libraries relates with each other? what should i do? When i begin the W5500 connection, the Ethernet does not receive the connection information (that are only accessible through lwip), so what?
please help :)
Thanks

Re: Help understanding (new?) ethernet with W5500 module

PostPosted: Mon Jun 14, 2021 12:19 am
by JurajA