IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.59k stars 491 forks source link

Added option for timeout while connecting to peripheral #374

Closed GunnarI closed 3 years ago

GunnarI commented 4 years ago

Added option to pass timeout parameter to the peripheral constructor to be used as timeout for "trying to connect" period. Possible resolution for issue #303

mdxs commented 4 years ago

Thanks, I would really like to see this merged... for now I use a local MyPheripheral with this PR approach to get the functionality, which is extremely useful when trying to connect to devices that are (no longer) connectable. Without this PR the default timeout is too long for me.

nikigraus commented 4 years ago

I also need this change, otherwise I can't use the software as it is hanging too long when the device is not there.

BaloMueller commented 4 years ago

Also approving the pullrequest. It is working for us.

sneko commented 4 years ago

@IanHarvey also a good PR without breaking change if you plan a next release :)

Thank you,