Skip to content
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

Timeout too large exception in btle.py when system time jumps due to NTP correction #512

Open
drdas opened this issue Aug 16, 2024 · 0 comments

Comments

@drdas
Copy link

drdas commented Aug 16, 2024

When running the ble scanning on a system where the network time sync for system time may take a while due to bad internet connectivity, the scanner thread throws an exception - "timeout too large".

This should be fixed by changing the use of time.time() to time.monotoic(0 for local timers such as:
https://github.com/IanHarvey/bluepy/blob/master/bluepy/btle.py#L846C9-L846C28

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

No branches or pull requests

1 participant