Skip to content

Conversation

pennam
Copy link
Contributor

@pennam pennam commented Oct 21, 2024

OPTA 👍
PORTENTA H7 👍
GIGA R1 👍
NICLA_VISION 👍

ci sill stop complain as soon as a global libmbed.a rebuild is done

Copy link

@Nopathway Nopathway left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add this changes

@pennam pennam merged commit 5f9dcc9 into arduino:main Oct 28, 2024
7 of 11 checks passed
@rishita-asl
Copy link

Hii, could you share a bit more documentation as to what the actual purpose and effect of the setTimeout function is? The comment "Configure WiFi join timeout in milliseconds. Default value is 7s" isn't self explanatory, and I am confused as about what effect this timeout value will have on an connection. What does "WiFi join" mean?

@pennam
Copy link
Contributor Author

pennam commented Feb 28, 2025

WiFi.begin() is a blocking API, when you call it, the wifi driver tries to join (connect) to the configured wifi network. If for some reason the WiFi chip can't join the network; the wifi driver was configured to do a number of retries each of that would block execution up to 7s.

With this patch we have reduced the number of internal retries to 1.

For some applications you may want to reduce the join timeout even more, and this is possible using WiFi.setTimeout()

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