I have a bluetooth device, in particular a Heart Rate Measurement.
The bluetooth standard for these kind of device is the 180D 2A37.
This is the link: https://developer.bluetooth.org/gatt/characteristics/Pages/CharacteristicViewer.aspx?u=org.bluetooth.characteristic.heart_rate_measurement.xml
I would like to get the measurements. How can I do?
At the moment, I am able to connect and pair with my device using the Bluetooth API ( BluetoothSocket
)
First, follow the official documentation to setup blutooth API and get an instance of BluetoothSocket
. This socket can be used to read and write bit data.
The chart you have mentioned explain the structure of 1 byte packets that the sensor uses. So, you can start reading bytes off the socket and de-code each byte using reference chart to get data.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.