Skip to content

WifiUdp.parsePacket() blocking #123

@MosiMiso

Description

@MosiMiso

Hi all!

When using WifiUdp on portenta H7 i recognized a different behaviour compared to Arduino MKR1010
Now WiFiUDP.parsePacket() is blocking for 1s if no message is available.
Looking into WifiUDP.h i recognized a hardcoded timeout of 1000ms.

My suggestion:

  • make the timeout user settable
  • make the socket non blocking (or let the user decide by offering a setter)

_socket.set_blocking(false);
in WiFiUDP.begin(uint16_t port)

Best regards
Michael

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