infsoft-locaware / blzlib

Bluetooth GATT Library for Linux / Bluez
GNU Lesser General Public License v3.0
26 stars 8 forks source link

Heart Rate Measure Program #7

Open alu0101205953 opened 2 years ago

alu0101205953 commented 2 years ago

Hi!

I've spent some days working with this library, trying to figure out how to do continuous heart rate measures, but I found some issues with functions blz_char_white and blz_char_notify. Reading on the internet, I found that Xiaomi mi band 6 need to authenticate with a key, but trying to do that, I'm still having issues.

This is the Javascript code I'm trying to translate and adapt to make a main program using this library: https://github.com/gzalo/miband-6-heart-rate-monitor/blob/master/src/miband.js

Hope someone can help me. Thanks in advance

br101 commented 2 years ago

Sorry, unfortunately security (peering) is not yet implemented in the library. It is possible with bluez though and should not be so difficult to add