Skip to content

Allow to set custom timeout for connect #97

Open
@MattesWhite

Description

@MattesWhite

Feature Description

Disclaimer: I can only speak for the Linux version. I don't know how this is handled for iOS or Windows.

At the moment, the timeout for a connect action is hard coded into the library: https://github.com/deviceplug/btleplug/blob/master/src/bluez/adapter/peripheral.rs#L404
It would be nice to have a connect_with_timeout(&self, timeout: Duration) method to be able to adjust the timeout at runtime.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions