sstaub / Ethernet3

Ethernet library for Arduino and Ethernetshield2 / WIZ550io / WIZ850io / USR-ES1 with Wiznet W5500 chip
Other
76 stars 34 forks source link

added mdns responder and MDNSWebServer example #6

Closed michael71 closed 7 years ago

michael71 commented 7 years ago

I have added an MDNS responder (adapted from WiFi101 library) and an MDNS WebServer example - the webserver can be reached by its name 'http://webserver3.local' (Linux or OSX) - on Windows you'll first need to install the Bonjour Printer Services from: https://support.apple.com/kb/dl999?locale=en_US Then you can access the device in a browser at 'http://webserver3.local/'. Remark: like in the WiFI101 lib, this is not a full MDNS implementation, just a "responder" (i.e. no service registration, discovery etc) p.s. this is my first pull request ever - I hope I've done it properly.

michael71 commented 7 years ago

using the MDNS responder adds 2144 bytes progmem and 153 bytes data in my sketch (Arduino Mega 2560).

sstaub commented 7 years ago

Sorry, I have to refuse your pull request. There is a more complete and popular library here https://github.com/TrippyLighting/EthernetBonjour. Maybe you test this library and port it to the Ethernet3 library. Let me know if it works.