petzval / btferret

Python and C Bluetooth Library
MIT License
122 stars 21 forks source link

Gatt server uuid configuration? #19

Closed gregoiregentil closed 1 year ago

gregoiregentil commented 1 year ago

A very important configuration is the Gatt server uuid. It's important because if you use the web bluetooth api, you can filter by service uuid.

Right now, the value is hard-coded in line https://github.com/petzval/btferret/blob/main/btlib.c#L669 and also line https://github.com/petzval/btferret/blob/main/btlib.c#L6592.

I think that it would make sense to add one line in devices.txt, something like: gatt uuid=....

petzval commented 1 year ago

Another sensible suggestion. I should be able to add this in the next release.

gregoiregentil commented 1 year ago

Thank you. Great work!