ejubenville
Member
I'm using Teensy 3.2 with an Wiz820IO and cannot receive UDP multicast messages.
I am trying to receive UDP multicasts from 239.192.0.1 on port 853, but get no packets.
During setup():
During loop():
I've watched with WireShark on an independent computer connected to the LAN segment, and Wireshark is able to capture the multicast messages, so I know they are there to be grabbed. Why isn't parsePacket() seeing any of them? Am I missing something in my code?
I am trying to receive UDP multicasts from 239.192.0.1 on port 853, but get no packets.
During setup():
Code:
EthernetUDP udp;
IPAddress multicast_ip(239,192,0,1);
Ethernet.begin( my_mac, my_ip, my_gateway, my_subnet );
int success = udp.beginMulticast( multicast_ip, 853 ); // returns 1 = success
During loop():
Code:
int rxSize = udp.parsePacket(); // always returns 0 = no packet to read
I've watched with WireShark on an independent computer connected to the LAN segment, and Wireshark is able to capture the multicast messages, so I know they are there to be grabbed. Why isn't parsePacket() seeing any of them? Am I missing something in my code?