labapart / gattlib

Library to access GATT information from BLE (Bluetooth Low Energy) devices
http://labapart.com/
436 stars 157 forks source link

Porting to Kivy #196

Closed xloem closed 3 years ago

xloem commented 3 years ago

Hi,

I've been working on making a kivy library that has the same interface as your python library, and I have what I've implemented running on android. The insides of the functions make java calls; see https://github.com/xloem/kivy-gattlib/tree/master/recipes/gattlib/src/gattlib .

Would you like this work integrated into your tree? Do you have any requests on what that would look like?

I don't expect to finish porting the entire library, but I have already finished enough that others could find it very useful.

xloem commented 3 years ago

When I began this work, I wasn't really aware of how gattlib and kivy worked under the hood.

It would make way more sense to port this as C rather than python, since kivy also uses C under the hood, on android.

Unfortunately, I've found that gattlib is missing some features important for me, and I am more likely to find and port a different library, when I get to the point that switching to C would be relevant.

gattlib upsides:

gattlib downsides (these mostly look pretty reasonable to patch):