mrdunk / esp8266_mdns

mDNS queries and responses on esp8266
MIT License
77 stars 16 forks source link

Is this working with wired Ethernet on the esp32? #12

Open martinschki opened 6 years ago

martinschki commented 6 years ago

Hi, Not an issue but a question: Would this lib work if I use instead of WiFi a wired Ethernet? In my case, a W5500 via spi Thanks!

mrdunk commented 6 years ago

Hi, so i don't have any esp32 hardware or suitable wired Ethernet hardware so i'm not sure. In theory though, yes it should with only minor modifications; As long as you can access the raw packets the methods in this library should be able to parse them.

Look at the line Udp.read(data_buffer, data_size); in mdns.cpp. This line populates data_buffer with the raw packet. As long as you are able to do similar then the rest of this code should work for you.

Good luck! dunk.