polarofficial / polar-ble-sdk

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

Commands BLE Documentation (send and receive bytes frames) #400

Closed Chakib-Temal closed 8 months ago

Chakib-Temal commented 9 months ago

Platform your question concerns:

Device:

Description:

Hello,

I'm working on a Flutter (Mobile) project, I'm already using a BLE plugin to communicate with lots of other sensors.

I'd like to add Polar sensors to my list, but is there any clear documentation on how to communicate with the sensor, read the data (order and reception) ?

1- Discover Polar Services and Features 2- How to streaming and Decoding Data

Best regards,

samulimaa commented 9 months ago

Hello,

1- Available features depend on the Polar device you are using. Please see https://github.com/polarofficial/polar-ble-sdk#features for more information.

2- Streaming is started by calling the corresponding streaming functions such as startHrStreaming(), startEcgStreaming(), startAccStreaming()... These functions provide Rx Flowable that emits values to your application. The SDK handles data decoding, before mentioned Rx Flowable has a data class as its type parameter, which contains decoded data. For example startHrStreaming() emits PolarHrData.

I also suggest taking look of example apps code.

Best regards, Samuli