Description
Board
ESP-32-Wrover-E
Device Description
Own Hardware, uses Etehrnet (Rj45)
Hardware Configuration
nothing i would think that it has something to do with multicast Ethernet. Ehernet + Webserver in general is working fine.
Version
v3.0.1
IDE Name
VSCode with Platformio
Operating System
Windows 11
Flash frequency
40 Mhz
PSRAM enabled
yes
Upload speed
922190
Description
Settingup an UDP Listener to use IPv6 Multicast dont seem to work.
if you setup your listener with:
IPAddress udp_ip_v6;
udp_ip_v6.fromString("ff02::1"); //"ff02::1"
listen_multicast_v6 = udp.listenMulticast(udp_ip_v6, udp_port, 0, TCPIP_ADAPTER_IF_ETH);
It seems to setup this listener and it seems fine. Return Value says it is ok.
If you then wants to send something to this multicast Adress it returns an error. I have tried different ways to send:
udp_ip_2.fromString("ff02::1");
udp_send_rv = udp.writeTo((uint8_t*)(temp_casambi_command.c_str()),temp_casambi_command.length(), udp_ip_2, udp_port, TCPIP_ADAPTER_IF_ETH);
udp_send_rv = udp.print(temp_casambi_command.c_str());
udp_message.write((uint8_t*)(temp_casambi_command.c_str()), temp_casambi_command.length());
But it always returned an error code in most cases it is:
ERR_VAL = -6,
or
ERR_RTE = -4,
If i do it on an non multicast way like
listen_v4 = udp.listen(udp_port);
listen_v6 = udp.listenIPv6();
and sending it to an known working ip it seems to be fine and i can receive the Packet.
If i send commands directed in ipv4 it also works and if i send it in broadcast in ipv4 it works too.
Sketch
See Description
Debug Message
See Description
Other Steps to Reproduce
I have tried it with different adresses and also changing between TCPIP_ADAPTER_IF_ETH and TCPIP_ADAPTER_IF_MAX or letting it empty. In Multicast it seems not to send something.
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.