Skip to content
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

UDP.available() calculates the buffer incorrectly. #66

Closed
baender opened this issue Dec 7, 2020 · 0 comments
Closed

UDP.available() calculates the buffer incorrectly. #66

baender opened this issue Dec 7, 2020 · 0 comments

Comments

@baender
Copy link
Contributor

baender commented Dec 7, 2020

I was making some tests with the Arduino MKR 1500 and a Python UDP server running on my machine (network via 1NCE VPN).

Sending data to the server did work, but when the server responded (returning message in all caps), the number of bytes available was around 4.294.967.290 (0xFFFF FFFA). So I figured that the subtraction used in NBUdp.cpp line 262 is reversed. After changing it I always got the correct number of bytes.
The solution is an educated guess, perhaps someone with more in-depth knowledge wants to have a look into that. However, I will post a Pull Request.

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

No branches or pull requests

2 participants