TrippyLighting / EthernetBonjour

Bonjour Library for Arduino & Teensyduino
51 stars 46 forks source link

Patching for Ethernet2 #15

Open canoemoose opened 5 years ago

canoemoose commented 5 years ago

Hi, I've made the changes to EthernetBonjour.cpp as outlined in this post in order to use EthernetBonjour with the Ethernet2 library on an Adafruit Feather M0 with Ethernet Wing, whcih uses the W5500 chipset.

My sketch compiles with no errors, however Bonjour fails to start - EthernetBonjour.begin("arduino") returns 0 .

Is there anything I've missed, or anything I can try? (tagging @DeltaCore too, for insight)

DeltaCore commented 5 years ago

Hi,

i am not familiar with that shield tbh. Have you tried any of the example sketches from the Ethernet2 lib to make sure the module it self is working?

The only thing i can imagine is that something with the multicast part is not working the way it should.

What i noticed was this line on the adafruit page: Works with all/any of our Feather boards as an Ethernet Client (server not supported at this time)!

The server thing could be the crucial part. beginMulticast (which is probably the part that fails) opens a socket which is basicly a server and adafruit sais the board can't work as a server. I don't have that hardware so i can't do debugging for that really well.

As i said, try some example sketches from the ethernet2 library from adafruit - especially the ones with server functionallity to see if the statement from adafruit is true about the not working as a server.