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.

    Declaration

    Swift

    func hrValueReceived(_ identifier: String, data: (hr: UInt8, rrs: [Int], rrsMs: [Int], contact: Bool, contactSupported: Bool))

    Parameters

    identifier

    Polar device id

    data

    Heart 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: true if the sensor has contact with a measurable surface (e.g. skin)
    • contactSupported: true if the sensor supports contact status detection