Skip to content

beginPacket can be used without listening on socket #185

New issue

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

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

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 8, 2017

Conversation

arcao
Copy link
Contributor

@arcao arcao commented Feb 8, 2017

Currently there is bug in WiFiUDP library when you want to use beginPacket(...) without listening on socket (without calling begin(...) first). You can't send any data because socket is not open and also tx_buffer is not allocated which cause crash while writing data to tx_buffer.

Note: Tested with WiFiUDPClient example. For situation without listening on socket, just comment the line with udp.begin(WiFi.localIP(),udpPort); (line 67).

Currently there is bug in WiFiUDP library when you want to use beginPacket(...) without listening on socket (without calling begin(...) first). You can't send any data because socket is not open and also tx_buffer is not allocated which cause crash while writing data to tx_buffer.
@me-no-dev me-no-dev merged commit 3e87dcf into espressif:master Feb 8, 2017
@arcao arcao deleted the fix-wifiudp-beginpacket branch February 9, 2017 20:06
brentru pushed a commit to adafruit/arduino-esp32 that referenced this pull request Oct 22, 2024
darkxst pushed a commit to darkxst/arduino-esp32 that referenced this pull request Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants