Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WiFi: add setTimeout()#976

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
pennam merged 3 commits intoarduino:mainfrompennam:wifi-timeout
Oct 28, 2024
Merged

WiFi: add setTimeout()#976

pennam merged 3 commits intoarduino:mainfrompennam:wifi-timeout
Oct 28, 2024

Conversation

@pennam
Copy link
Contributor

@pennampennam commentedOct 21, 2024
edited
Loading

OPTA 👍
PORTENTA H7 👍
GIGA R1 👍
NICLA_VISION 👍

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

Copy link

@NopathwayNopathway 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

@pennampennam merged commit5f9dcc9 intoarduino:mainOct 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
ContributorAuthor

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 ofretries each of that would block execution up to7s.

With thispatch 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 usingWiFi.setTimeout()

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@NopathwayNopathwayNopathway requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@pennam@rishita-asl@Nopathway

[8]ページ先頭

©2009-2025 Movatter.jp