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

getting error/exception whenever trying to stop() a running HCIScanner #62

Open
vleeb opened this issue Sep 7, 2021 · 0 comments
Open

Comments

@vleeb
Copy link

vleeb commented Sep 7, 2021

Hi, thank you for this nice library.
Whenever I try to stop() a running HCIScanner I am getting:

Error disabling scan:: Connection timed out
terminate called after throwing an instance of 'BLEPP::HCIScanner::IOError'
  what():  Error disabling scan:: Connection timed out

Am I doing anything wrong, or is this a bug?
You have some nice examples for using the HCIScanner, but they do not use the stop() function at all.

I was able to fix this problem by using the
err = hci_close_dev(hci_fd);
within the stop() function instead of calling hci_le_set_scan_enable(...) there ...
... but then I had to move
hci_open_dev(dev_id)
from constructor() to start().

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