polarofficial / polar-ble-sdk

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

Is there a way to stream ACC data from two polar sensors in paralel? #320

Closed BBEU79 closed 1 year ago

BBEU79 commented 1 year ago

Platform your question concerns:

Device:

Description:

I am trying to connect two Polar sensors.

Both devices are connected and indicate that the ACC and PPG is ready. I am getting HR from both sensors without any issues, however when I start ACC stream it always return a message that the second device is not connected.

api.connectToDevice(DEVICE 1 ID) api.connectToDevice(DEVICE 2 ID)

When I start the ACC stream DEVICE 1 - works without issues (and it returns ACC data as expected) DEVICE 2 - returns "Error Device is not connected - current state is: connected (DEVICE 1 ID)"instead of DEVICE 2 ID.

when I switch the DEVICE 1 AND DEVICE 2 ID, I get the data from the second sensor, but not the first one.

Is it possible to stream the ACC data from two sensors in paralel?

thank you for any hint

Bohdna

BBEU79 commented 1 year ago

As usual, I found the answer just after posting the question, the answer is yes, it works for me now.