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

error in UDP wifi transmission #4

Open
totoantibes opened this issue Jun 8, 2021 · 0 comments
Open

error in UDP wifi transmission #4

totoantibes opened this issue Jun 8, 2021 · 0 comments

Comments

@totoantibes
Copy link

First, thanks for this code.
I found that there is an issue at the very end of it. you need to correct:
udp.beginPacket(remoteIp, port); // remote IP and port
to
udp.beginPacket(remoteIp, udp.remotePort()); // remote IP and port

otherwise connection is not established with the remote party
(the need of the temp variable remoteIP is questionable since you can access it via udp.remoteIP())

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

1 participant