- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I want to receive multicast packets on a specific address.
I have joined the mutlicast with the following function:
wiced_multicast_join(WICED_STA_INTERFACE,224.0.0.251);
But how do I receive the udp packets for this address after the join?
I was thinking to use udp_receive with a timer but this requires a socket.
I did a search through the apps folder with this function but can't find an example either, can anyone point me to the function I need to receive those packets after join?
Cheers,
Gerard
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Gerard,
You are on the right track, once u join the multicast then just use the wiced_udp_create_socket to set up the socket to receive UDP. You will get both Multicast and unicast UDP data on this socket.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Gerard,
You are on the right track, once u join the multicast then just use the wiced_udp_create_socket to set up the socket to receive UDP. You will get both Multicast and unicast UDP data on this socket.
Greg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Greg,
Thanks a lot, works like a charm.
Cheers,
Gerard