MeshMessageGenericOnOffStatus
public struct MeshMessageGenericOnOffStatus : MeshMessage
Mesh Message Generic OnOff Status
Generic OnOff Status is an unacknowledged message used to report the Generic OnOff state of an element.
-
Op Code
Declaration
Swift
private(set) public var opCode: Data { get }
-
Present OnOff
Declaration
Swift
private(set) public var present: GenericOnOffState { get }
-
Target OnOff
Declaration
Swift
private(set) public var target: GenericOnOffState? { get }
-
Remaining Time
Declaration
Swift
private(set) public var remainingTime: MeshTransitionTime? { get }
-
Create Message
Declaration
Swift
public init(present: GenericOnOffState, target: GenericOnOffState?, remainingTime: MeshTransitionTime?)
Parameters
present
Present OnOff
target
Target OnOff
remainingTime
Remaining Time
-
Encodes into Data
Declaration
Swift
public func encode() -> Result<Data, BluetoothEncodeError>
Return Value
Encoded Data Result