Skip to content

Added set_timeout(..) function... #38

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

Closed
wants to merge 1 commit into from
Closed

Added set_timeout(..) function... #38

wants to merge 1 commit into from

Conversation

JlnWntr
Copy link

@JlnWntr JlnWntr commented Dec 3, 2018

so that you actually are able to timeout a discovery.

@JlnWntr JlnWntr mentioned this pull request Dec 3, 2018
@@ -6,4 +6,5 @@ def device_discovered(self, device):

manager = AnyDeviceManager(adapter_name='hci0')
manager.start_discovery()
manager.set_timeout(3 * 1000); # Timeout after 3 seconds
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can see the value of the timeout. I would however like to see this feature as a parameter to manager.start_discovery(), i.e. manager.start_discovery(timeout=3.0) with a default to None (meaning no timeout).

@JlnWntr
Copy link
Author

JlnWntr commented Mar 26, 2019

It's done: #45

@JlnWntr JlnWntr closed this Mar 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants