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

crash when reading some characteristics #4

Closed
ChristianKuehnel opened this issue Jan 16, 2017 · 1 comment
Closed

crash when reading some characteristics #4

ChristianKuehnel opened this issue Jan 16, 2017 · 1 comment

Comments

@ChristianKuehnel
Copy link

I was really happy to find a proper library for GATT, unfortunately I get a reproducible crash trying to read certain characteristics of my device:
terminate called after throwing an instance of 'boost::python::error_already_set'

a minimal code example is:

from gattlib import GATTRequester
req = GATTRequester(<some mac>)
value = req.read_by_handle(0x35)

It only happens with some characteristics while others work fine. So far I did not yet find a pattern when is succeeds or fails.

When reading the same value with gatttool it works fine:

$ gatttool -b <mac> --char-read -a 0x35
Characteristic value/descriptor: aa bb cc dd ee ff 99 88 77 66 00 00 00 00 00 00 
@oliviermartin
Copy link
Contributor

Christian, I think you raised an issue in the wrong project. This gattlib project is mainly to write a C GATT client while you are looking at the gattlib python project - probably this project: https://bitbucket.org/OscarAcena/pygattlib.

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

2 participants