polarofficial / polar-ble-sdk

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

Android app connecting to 2 Polar devices: H10 and Verity Sense #324

Closed PaolaDF closed 1 year ago

PaolaDF commented 1 year ago

Platform your question concerns:

Device:

Description: I am developing an app based on the Polar SDK where I connect an android phone to the Polar H10 and save the data. I want to add a Verity Sense to my setup in order to also have the PPG. Is it possible to establish 2 connections (the app connects to 2 Polar devices) through the Polar APIs?

JOikarinen commented 1 year ago

Hi @PaolaDF, it is totally possible. Each of API function (which is relative to device) takes the device identifier as parameter. You may establish the connection as many devices you wish, the SDK is not limiting the amount of parallel connection.

You just call the connection for all the devices you want, i.e. api.connectToDevice(<identifier>)