Skip to content

WiFiUDP only emit a packet on flush if not ended #2618

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Nov 17, 2024
Merged

Conversation

earlephilhower
Copy link
Owner

A flush() on a packet that's already been sent should be a no-op, not send a 0-byte UDP packet. Track when an outgoing packet is dirty and only endPacket()/transmit it when so.

Fixes #2617

A flush() on a packet that's already been sent should be a no-op, not
send a 0-byte UDP packet.  Track when an outgoing packet is dirty and
only endPacket()/transmit it when so.

Fixes #2617
@earlephilhower earlephilhower merged commit bda12cd into master Nov 17, 2024
26 checks passed
@earlephilhower earlephilhower deleted the udps branch November 17, 2024 16:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WiFiUdp flush() purpose
1 participant