Hello
Has anyone expierence with the Zephyr HXM2 with Bluetooth smart? I have a few example programs, but they are pretty hard to understand. I am currently working on an program, which should display the heart rate, received form a chest strap (Zephyr HXM2) by Bluetooth LE. I managed to get a connection and to read characteristics like the serial number string. But where I do have problems, is in getting the heart rate measurement (UUID = 0x2A37).
So what my program actually does is:
enabling the notification of the descriptor (UUID =00002902-0000-1000-8000-00805f9b34fb)
descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); mBluetoothGatt.writeDescriptor(descriptor);
then I wait for the onCharacteristicChanged Method and do the getvalue function.
BluetoothGattCharacteristic.getValue()
First thing I don't know if this is the right way, secondly I get data, but it varies from 2,4 and 6 bytes. Don't know what to do with them.
Has anyone expierence with the Zephyr HXM2 with Bluetooth smart? I have a few example programs, but they are pretty hard to understand. I am currently working on an program, which should display the heart rate, received form a chest strap (Zephyr HXM2) by Bluetooth LE. I managed to get a connection and to read characteristics like the serial number string. But where I do have problems, is in getting the heart rate measurement (UUID = 0x2A37).
So what my program actually does is:
enabling the notification of the descriptor (UUID =00002902-0000-1000-8000-00805f9b34fb)
descriptor.setValue(BluetoothGattDescriptor.ENABLE_NOTIFICATION_VALUE); mBluetoothGatt.writeDescriptor(descriptor);
then I wait for the onCharacteristicChanged Method and do the getvalue function.
BluetoothGattCharacteristic.getValue()
First thing I don't know if this is the right way, secondly I get data, but it varies from 2,4 and 6 bytes. Don't know what to do with them.