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

MbedClient add network status check#907

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 2 commits intoarduino:mainfrompennam:client-network-check
Jun 28, 2024

Conversation

@pennam
Copy link
Contributor

@pennampennam commentedJun 27, 2024
edited
Loading

This PR makesconnected() consider also network status. In some conditions: WiFi turning ON and OFF or Ethernet cable connections and disconnectionsconnected() returns 1 even if network is in reality disconnected.

Alsostatus() is a bit confusing so i make it private, users can still check Client status usingconnected()

@JAndrassy
Copy link
Contributor

JAndrassy commentedJun 27, 2024
edited
Loading

please letstatus() public.connected() returns true if data are available, which is not useful for sending.
in the W5500 Ethernet library status() even allows async connect if the connect timeout is low or zero.

https://github.com/Networking-for-Arduino/Arduino-Networking-API/blob/main/ArduinoNetAPIDev.md#status-optional

pennam reacted with thumbs up emoji

@pennampennamforce-pushed theclient-network-check branch from4aff80b to636b20eCompareJune 27, 2024 09:44
@pennampennam merged commite707506 intoarduino:mainJun 28, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

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

@pennam@JAndrassy

[8]ページ先頭

©2009-2025 Movatter.jp