-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Connection timeout for attempting to connect to MQTT server? #94
Comments
Hi @shinglaifs , |
@hirotakaster thank you very much for your prompt response. However, I try to see if there is any other method that will work. |
@shinglaifs Yes, AsyncTCPClient maybe work well, but I don't test with it and it difficult to check the problem as his comment 'Most APIs are not thread safe'. Because of that I think a lot of modification will be needed with AsyncTCPClient. |
thank you @hirotakaster , I will give AsyncTCPClient method a try with your library. |
Is there currently a way to set the connection timeout for attempting to connect to the MQTT server?
I realize that the current coding the mqttclient.connect() will take about 20 seconds before giving up on the attempting to connect to an IP that simply cannot be reach in the network.
The text was updated successfully, but these errors were encountered: