Now I got wireshark going I think I see what's happening. "Binding" to the multicast port seems to grab it and stop the mac app from receiving the multicast packets that are going out.
The only IGMP packets that appear are the ones from the mac app starting up.
The only reason it worked briefly was that by a fluke I managed (unintentionally) to switch the IPs of the mac and the mbed after the mac had joined the multicast group.
So, what I need is to send an IGMP packet to the multicast port rather than bind to it.
Once again I'm stuck as I do not see this option in the UDPSocket (in Library EthernetIf)
Looking again at the api doc I see
UDPSocketErr bind ( const Host & me )
Binds the socket to local host or a multicast address.
This implies that there is a way - but what's that cryptic &me all about?
Anyone know of a facility in mbed to join a multicast group?
Thx. Paul
After looking at a lot of code examples on this forum I am still confused as to how a client application should join an existing multicast group on the LAN. Most of the examples refer to multicasting as opposed to listening. I tried this code ..
.. which just sits there waiting. I am wondering whether I should not be sending a join request to the device that is multicasting? If so, anyone know what to send?
Paul