TrippyLighting / EthernetBonjour

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

Compile Errors #1

Closed like-a-bause closed 10 years ago

like-a-bause commented 10 years ago

Hi there, is this working code? And which version of the Arduino Ethernet Library should I use with it? Tried to compile and got errors that members of EthernetUdp are private. Changed this to protected in EthernetUdp.h and got this: EthernetBonjour.cpp:148:21: error: 'class EthernetBonjourClass' has no member named 'beginMulti' statusCode = this->beginMulti(mdnsMulticastIPAddr, MDNS_SERVER_PORT);

Seems pretty broken to me.

like-a-bause commented 10 years ago

ahh ok, i found this: https://github.com/arduino/Arduino/pull/1531/files

TrippyLighting commented 10 years ago

I see that you've closed the issue. However, I am not 100% sure the code in the pull request you have referred to is going to work. I have described the changes necessary to the Ethernet library in this thread on the Teensy forum: http://forum.pjrc.com/threads/25561-Proposal-for-additions-to-Ethernet-EthernetUDP-library?highlight=bonjour

I've received somewhat of a commitment from Paul Stoffregen that these changes will be added with teensyduino 1.19 or 1.20. Probably a good while before these simple fully backwards compatible additions will ever make it into an official Arduino distribution ;-)

like-a-bause commented 10 years ago

At least it compiles with the linked patch. But the code doesn't run on my mega2560. I get the beginMulti() but after that no more Serial output. I'll have to debug a bit further.

TrippyLighting commented 10 years ago

What hardware are you using in conjunction with your mega2560. A "standard" Arduino Ethernet shield based on the W5100 chip ?

like-a-bause commented 10 years ago

Yes I do. Can I get a your mail Address? I Want to share a video of my current Project with you. Since you are also passionate about Light this might interest you. Removing the suggested Lines in EthernetUdp.cpp did the trick! avahi-discover sees my _osc Service. Thanks a Lot for Updating this Library!

Edit: In case anyone stumbles across this, here is my fork working with EthernetBonjour: https://github.com/aspeteRakete/Arduino/tree/1.0.5-r2_multicast

TrippyLighting commented 10 years ago

Great! glad you got it to work! I think I'll add some instructions on how to patch the Ethernet Library. Or direct users to get one of the teensy boards: http://www.pjrc.com/teensy/index.html my email is: dangolboom(klammeraffe)mac.com