FitnessMachineStatusTargetHeartRate
@available(swift 3.1)
@available(iOS 10.0, tvOS 10.0, watchOS 3.0, macOS 10.12, *)
public struct FitnessMachineStatusTargetHeartRate : FitnessMachineStatus
Status Value for Fitness Machine Target Heart Rate Changed
-
Status Code
Declaration
Swift
private(set) public var statusCode: FitnessMachineStatusCode { get }
-
New Target Heart Rate
Declaration
Swift
private(set) public var heartRate: Measurement<UnitCadence> { get }
-
Create Fitness Machine Status for Target Heart Rate Changed
Declaration
Swift
public init(heartrate: UInt8)
Parameters
heartrate
Heart Rate in BPM
-
Encodes Status into Data
Declaration
Swift
public func encode() -> Result<Data, BluetoothEncodeError>
Return Value
Encoded Data Result