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

Client connect timeout support #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JAndrassy
Copy link
Contributor

Client connect timeout is very useful if the other device may be out of reach. Then the default timeout of LwIP is too long (looks like it is 18 seconds).

The PR adds the support for the timeout in WiFiNINA. The new code is only active if timeout is not 0. With timeout 0 it works like before.

The timeout version of connect is based on the code from the esp32 Arduino WiFi library, which is based on IDF examples. It looks like many lines, but it is just detailed error detection and logging which I didn't want to throw away.

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.

1 participant