polarofficial / polar-ble-sdk

Repository includes SDK and code examples. More info https://polar.com/en/developers
Other
447 stars 147 forks source link

startHrStreaming not working #461

Open kitkatbonsai opened 1 month ago

kitkatbonsai commented 1 month ago

Platform on which you observed the bug:

Device on which you observed the bug:

Describe the bug HR samples not being received anymore on devices different than H10 and Verity Sense after startHrStreaming was implemented and HR Notification deprecated.

How to Reproduce Connect a Polar Unite to check HR. Make sure the device is paired and you enable broadcast HR data to your device through the "training" configuration. All logs will say all features are enabled and connection goes smoothly but it will not receive HR data anymore.

Expected behavior It should receive HR data,

Screenshots and logs LOG: 2024-05-20 12:56:37.538 29416-4158 BluetoothGatt com.example D connect() - device: A09E1A_F, auto: false 2024-05-20 12:56:37.538 29416-4158 BluetoothGatt com.example D registerApp() 2024-05-20 12:56:37.539 29416-4158 BluetoothGatt com.example D registerApp() - UUID=b3be0e22-eda6-4909-b90e-0de67454a5c5 2024-05-20 12:56:37.546 29416-29444 BluetoothGatt com.example D onClientRegistered() - status=0 clientIf=6 2024-05-20 12:56:38.221 29416-29444 BluetoothGatt com.example D onClientConnectionState() - status=0 clientIf=6 device=A09E1A_F 2024-05-20 12:56:38.731 29416-4411 BluetoothGatt com.example D discoverServices() - device: A09E1A_F 2024-05-20 12:56:38.748 29416-30081 BluetoothGatt com.example D onSearchComplete() = Device=A09E1A_F Status=0 2024-05-20 12:56:39.805 29416-29444 BluetoothGatt com.example D onPhyUpdate() - status=0 address=A09E1A_F txPhy=2 rxPhy=2 2024-05-20 12:56:39.814 29416-4411 BluetoothGatt com.example D configureMTU() - device: A09E1A_F mtu: 512 2024-05-20 12:56:39.985 29416-30081 BluetoothGatt com.example D onConfigureMTU() - Device=A09E1A_F mtu=128 status=0 2024-05-20 12:56:39.987 29416-29416 85625F25 com.example D Connected to 85625F25 2024-05-20 12:56:39.989 29416-4158 85625F25 com.example D feature ready FEATURE_HR 2024-05-20 12:56:39.990 29416-4158 85625F25 com.example D feature ready FEATURE_DEVICE_INFO 2024-05-20 12:56:39.992 29416-4158 85625F25 com.example D feature ready FEATURE_BATTERY_INFO 2024-05-20 12:56:40.488 29416-29702 BluetoothGatt com.example D setCharacteristicNotification() - uuid: 00002a19-0000-1000-8000-00805f9b34fb enable: true 2024-05-20 12:56:40.661 29416-29416 85625F25 com.example D battery level received - 85 % 2024-05-20 12:56:41.289 29416-30081 BluetoothGatt com.example D setCharacteristicNotification() - uuid: 00002a37-0000-1000-8000-00805f9b34fb enable: true 2024-05-20 12:57:02.859 29416-2464 BluetoothGatt com.example D onConnectionUpdated() - Device=A09E1A_F interval=36 latency=4 timeout=600 status=0