Closed talbigelbinah closed 8 months ago
Hello, have you tried using PolarDeviceInfo.name field?
In the example app, Polar device name is logged when scanning devices: https://github.com/polarofficial/polar-ble-sdk/blob/master/examples/example-android/androidBleSdkTestApp/app/src/main/java/com/polar/androidblesdk/MainActivity.kt#L257
The output in the app would be something like: polar device found id: 8C4CAD2D address: A0:9E:1A:8C:4C:AD rssi: -46 name: Polar Sense 8C4CAD2D isConnectable: true
Note that "Polar Verity Sense" name is just "Polar Sense" with device ID.
Thanks. We'll use the .name field.
But is it still possible to maybe add a 'type' field in a future release (as either a declared const or enum)?
The reasons are mostly:
Yes I created internal ticket about adding the "type" field in future releases.
Platform your question concerns:
Device:
Description:
Less of a question, more a feature request of adding to the PolarDeviceInfo object a 'type' or a 'deviceType' field with the type of the of the Polar device (Whether it's Verity Sense, H10, etc.).
The use-case is we would like to only 'show' certain device types (for example, only Polar Verity Sense) when searching for devices using the searchForDevice() API, and filter ones we don't support.