Hi @ all!
I have an app that should always connect to a device independently without user action. Now I'm wondering how best to reconnect if the first connection attempt after app start fails? The connect.useAutoConnect(true) flag only works if the first attempt was successful? I can think of 2 solutions:
1.: Set connect.timeout() to a very high value and hope that the devices ist reachable in this time period.
2.: Start a new connection setup in the connect.fail() callback. Is there a better solution?
Hi @ all!
I have an app that should always connect to a device independently without user action. Now I'm wondering how best to reconnect if the first connection attempt after app start fails? The connect.useAutoConnect(true) flag only works if the first attempt was successful? I can think of 2 solutions:
1.: Set connect.timeout() to a very high value and hope that the devices ist reachable in this time period.
2.: Start a new connection setup in the connect.fail() callback. Is there a better solution?