Search code examples
bluetoothmonitorrate

Read bluetooth pulse on Android


I'm trying to read the pulse of a heart rate monitor bluetooth. Now I connect the device via Bluetooth and see their name, status, etc., but do not know how to read pulses. I have read that it was easier by smartgattlib library, but neither him. Someone could tell me how or made used the library to read a device smartgattlib?

Thank you


Solution

  • On Android you need to subscribe for notifications on the pulse characteristic.

    Please check the bluetooth low energy sample: https://github.com/googlesamples/android-BluetoothLeGatt

    On the sample after subscribing for notifications onCharacteristicChanged() callback will be called, you will need to read the pulse data there.