Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By pattagghiu
#91611 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