Skip to content

Best solution for automatic reconnect #435

@Leopold84

Description

@Leopold84

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions