PolarBleApiDeviceHrObserver
public protocol PolarBleApiDeviceHrObserver : AnyObject
Heart rate observer
-
HR notification received. Notice when using OH1 and PPI stream is started this callback will produce 0 hr.
Requires
Requires SDK feature(s):
PolarBleSdkFeature.feature_hr,PolarBleSdkFeature.feature_polar_online_streamingDeclaration
Swift
func hrValueReceived(_ identifier: String, data: (hr: UInt8, rrs: [Int], rrsMs: [Int], contact: Bool, contactSupported: Bool))Parameters
identifierPolar device id
dataHeart rate measurement tuple containing:
- hr: Heart rate value in BPM
- rrs: RR interval values in 1/1024 second units
- rrsMs: RR interval values in milliseconds
- contact:
trueif the sensor has contact with a measurable surface (e.g. skin) - contactSupported:
trueif the sensor supports contact status detection