You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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?
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.
The text was updated successfully, but these errors were encountered: