hbldh / pymetawear

Community developed SDK around the Python bindings for the C++ SDK

Home Page:https://hbldh.github.io/pymetawear/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get handle for characteristic

hbldh opened this issue · comments

Using a querying of board for handles in the uuid when writing Gatt request must be wrong.

Offending section

Read BLE documentation and find out how to do it correctly.

For pygatt, one can use the get_handle method on the BLEDevice class.
For gattlib, I build a dictionary of handles using discover_primary and discover_characteristic