polarofficial / polar-ble-sdk

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

GET_MEASUREMENT_SETTINGS error: failed with error: ERROR_INVALID_PARAMETER #451

Open PaolaDF opened 3 months ago

PaolaDF commented 3 months ago

Platform your question concerns:

Device:

Description: I developed an app that stores ECG and ACC data from H10 for Android. It also includes a log file where I save some messages. During a test I got this message: com.polar.androidcommunications.api.ble.exceptions.BleControlPointCommandError: pmd cp command GET_MEASUREMENT_SETTINGS error: failed with error: ERROR_INVALID_PARAMETER

What does it mean?

I already tested various times this smartphone, app version, Polar SDK version and this specific Polar H10; this is the first time I get this message.

jimmyzumthurm commented 3 months ago

Hi @PaolaDF
This means that the GET_MEASUREMENT_SETTINGS was somehow parsed wrongly, and H10 detected an error on the command. This command should basically just be the opcode of the command (0x01) and then as parameter 1 single byte defining the measurement type (0x00 for ECG, 0x02 for ACC).