cancel
Showing results for 
Search instead for 
Did you mean: 

Wi-Fi Combo

Geva_2134536
New Contributor II

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

0 Likes
1 Solution
grphc_1578046
New Contributor II

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

View solution in original post

2 Replies
grphc_1578046
New Contributor II

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

View solution in original post

Geva_2134536
New Contributor II

Hi Greg,

Thanks a lot, works like a charm.

Cheers,

Gerard

0 Likes