Ethernet - UDP Multicast

In LWIP -> Key Options, click "Show Advanced Parameters", and then enable "LWIP_MULTICAST_TX_OPTIONS".

Also make sure "MEMP_NUM_IGMP_GROUP" is greater than 1. Here it's defaulted to 8.

Then, in General Settings, enable "LWIP_IGMP".

Open "ethernetif.c", find the low_level_init() function.

Add the following line after the "Accept broadcast address and ARP traffic" line to enable IGMP service.

Define the following UDP multicast helpers

And in application code,

Last updated