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

GIGA R1: fix for UDP endPacket failing #964

Merged
merged 1 commit into from
Oct 2, 2024

Conversation

maidnl
Copy link
Contributor

@maidnl maidnl commented Sep 30, 2024

Fix for #944 (GIGA R1, WiFiUDP::endPacket() fails after release 4.1.3)
Apparently the problem was introduced in 79d35ef (this introduced support for hidden WiFi Network).
The "unknown" network mentioned in #944 was mistaken for an hidden network causing the problem (as a side effect the failed connection took much more time because of the re-tries to connect to not existent network).
The PR bypass the problem defaulting the security parameter of begin() to Unknown.
If the network is not hidden the security is taken from the connection itself.
If the network is hidden the user must set the security => if the security is Unknown the user has not set the security parameter, so this is an attempt to connect to a not existent network and the PR restore the previous behavior (no attempt to connect, this also remove the additional time).

@maidnl maidnl requested review from facchinm and pennam September 30, 2024 15:47
@pennam pennam merged commit 6ae4fb5 into arduino:main Oct 2, 2024
11 checks passed
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.

3 participants