FitnessMachineProcedureResponse
public struct FitnessMachineProcedureResponse : FitnessMachineControlProcedure
Fitness Machine Procecure to identify the response to the Control Point
-
Control Response Result Codes
See moreDeclaration
Swift
public enum ResultCode : UInt8
-
Control Code
Declaration
Swift
private(set) public var controlCode: FitnessMachineControlCode { get }
-
Requested Code
This is the FitnessMachineControlCode which is being Responded to
Declaration
Swift
private(set) public var requestCode: FitnessMachineControlCode { get }
-
Result of the Requested Procedure
Declaration
Swift
private(set) public var resultCode: ResultCode { get }
-
Response Parameter
Declaration
Swift
private(set) public var responseParam: FitnessMachineControlResponseType? { get }
-
Create Control Procedure for Response
Declaration
Swift
public init(requestCode: FitnessMachineControlCode, resultCode: ResultCode, responseParam: FitnessMachineControlResponseType?)
Parameters
requestCode
Code Requested which is being responded to
resultCode
Result Code for response
responseParam
Optional Parameter for response
-
Encodes Control Procedure into Data
Declaration
Swift
public func encode() -> Result<Data, BluetoothEncodeError>
Return Value
Encoded Data Result