receive multicast packets after join

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Geva_2134536
Level 3
Level 3
First like received First like given

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
Level 4
Level 4
10 likes received First like received First like given

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
Level 4
Level 4
10 likes received First like received First like given

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

Hi Greg,

Thanks a lot, works like a charm.

Cheers,

Gerard

0 Likes