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

Add setClientTimeout() to ESP8266HTTPUpdate#8740

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
mcspr merged 7 commits intoesp8266:masterfromDarioGHub:dwb_ESP8266HTTPUpdate
Dec 6, 2022

Conversation

@DarioGHub
Copy link
Contributor

@DarioGHubDarioGHub commentedDec 4, 2022
edited
Loading

Shortening up the default hard-coded 8000 ms timeout, will save energy when module can't reach its update server, especially on battery powered projects, and otherwise provide adaptability to the local wlan. The ESPhttpUpdate object is auto-created by #including ESP8266HTTPUpdate. ESP8266HTTPUpdate also provides a constructor with param httpClientTimeout, but to use it required destroying the auto ESPhttpUpdate object, or creating a secondESPhttpUpdate(timeout) object.

Alternative to destroying auto created object ESPhttpUpdate, then recreating it with the constructor that supported a timeout
changed commented setDebugOutput to false to reflect the core 3 behaviour of wifi debug output by default.Removed a couple of newlines, and the 4 second wait block from setup.
@mcsprmcspr merged commit9701d3a intoesp8266:masterDec 6, 2022
@DarioGHubDarioGHub deleted the dwb_ESP8266HTTPUpdate branchDecember 6, 2022 13:02
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull requestNov 18, 2024
Shortening up the default hard-coded 8000 ms timeout, will save energy when module can't reach its update server, especially on battery powered projects, and otherwise provide adaptability to the local wlan. The ESPhttpUpdate object is auto-created by #including ESP8266HTTPUpdate. ESP8266HTTPUpdate also provides a constructor with param httpClientTimeout, but to use it required destroying the auto ESPhttpUpdate object, or creating a secondESPhttpUpdate(timeout) object.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@mcsprmcsprmcspr left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@DarioGHub@mcspr

[8]ページ先頭

©2009-2025 Movatter.jp