ESP32 can't recieve multicast UDP Packet

Viewed 24

I am trying to let two or more ESP32-S2s communicate from one to the others over udp. Since they possibly dont know each others ip i wanted to use multicast. Sending MulticastPackets is working.(At least I can wireshark the Packets on my PC).

Recieving on the other esp doesnt work so far. Im Broadcasting to 192.168.178.255:7777

The reciever uses the following code:

//Called once after Wifi is connected:
udp.beginMulticast(OAL_Broadcast, OALPort); // 192.168.178.255, 7777 as inputs

//Called periodically :
Serial.println(udp.parsePacket()); // In my case always returns 0

What am I missing?

0 Answers
Related