Skip to content

How to use beginMulticast #318

@Phil1pp

Description

@Phil1pp

Does anybode have a sample project on how to correctly use Multicast on a bk7231n?
I am trying to port a project from ESP32 to bk7231n but I can't get it to work.

On ESP32 I can see the multicast traffic in Wireshark after calling beginMulticast, but on bk7231n there is no traffic at all and result is 0.

WiFiUDP _udp;
IPAddress mcastaddr = IPAddress(224, 0, 23, 12);
uint8_t result = _udp.beginMulticast(mcastaddr, 3671);

log:

lwip_socket(PF_INET, SOCK_DGRAM, 0) = 0
lwip_setsockopt(0, SOL_SOCKET, optname=0x4, ..) -> on
lwip_bind(0, addr=   0.   0.   0.   0 port=3671)
udp_bind(ipaddr =    0.   0.   0.   0, port = 3671)
udp_bind: bound to    0.   0.   0.   0, port 3671)
lwip_bind(0) succeeded
E [     28.174] could not join igmp: 125

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions