Skip to content

UDP packet destination address (IDFGH-5400) #7146

@SimonPVS

Description

@SimonPVS

Is it possible to retrieve the destination address from an UDP packet?
I have one UDP socket. This socket receives broadcast, multicast and unicast, but the ESP should perform a different action depending on the destination it was send to (uni, broad or multi).

In the UDP examples provided by esspressif, only the source address can be found, using the recvfrom() function.
So it would be very nice if the destination address was also provided to make a destinction between a unicast, multicast or broadcast.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions