Skip to content

Async connect for WiFiClient ? #2180

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

Closed
pgScorpio opened this issue Jun 22, 2016 · 3 comments
Closed

Async connect for WiFiClient ? #2180

pgScorpio opened this issue Jun 22, 2016 · 3 comments

Comments

@pgScorpio
Copy link

Basic Infos

Hardware

Hardware: ESP-12
Core Version: 2.2.0

Description

Problem description

At this moment WiFiClient::connect() is blocking until connected or error.

Especially when the server you are connecting to is offline this causes your sketch to freeze for a few seconds...... In a lot of cases this is not acceptable.

I think it should be possible to start a connect without blocking and check from loop if the connect succeeded or not.

@chaeplin
Copy link
Contributor

chaeplin commented Jun 23, 2016

@igrr
Copy link
Member

igrr commented Jun 23, 2016

Also, closing as duplicate of #922.

@igrr igrr closed this as completed Jun 23, 2016
@miguelpom
Copy link

Hi, guys.
@igrr: this issue is kind of related to the one posted in #922. However, the actual problem with the blocking timeout of the function WifiClient.connect() isn't really addressed or solved. Or so it seems to me.
Can we reanimate this thread, please?

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

No branches or pull requests

4 participants