polarofficial / polar-ble-sdk

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

PPI stream failed. Reason: com.polar.sdk.api.errors.PolarNotificationNotEnabled #423

Closed vbheemr closed 3 months ago

vbheemr commented 7 months ago

Platform your question concerns:

Device:

Description: Coming to polar sensor reconnection ,I've encountered an issue during the sensor reconnection process. While the sensor successfully reconnects, the PPI stream values are not updating as expected after reconnecting.I wanted to know how to solve this error and enable PPI stream.

The error message we're facing is:

Screenshot 2023-12-01 at 9 26 57 AM
jimmyzumthurm commented 3 months ago

hi @vbheemr , From your logs I see that you try to access the PMD service (FB005C80-02E7-F387-1CAD-8ACD2D8DF0C8) before subscribing to the characteristics (last 3 lines from your logs) that are needed to start PPI recording. In log after you see "Streaming feature XXXX is ready" which means after that only you will be able to restart the PPI recording. Maybe you could use that callback to restart PPI recording on re-connection ?

jimmyzumthurm commented 3 months ago

The callback to use seems to be bleSdkFeatureReady if you are using SDK 5.0.0 or later