MeshMessageGenericLevelSet

public struct MeshMessageGenericLevelSet : MeshMessage

Mesh Message Generic Level Set

Generic Level Set is an acknowledged message used to set the Generic Level state of an element

The response to the Generic Level Set message is a Generic Level Status message.

  • Op Code

    Declaration

    Swift

    private(set) public var opCode: Data { get }
  • Level State

    Declaration

    Swift

    private(set) public var state: Int16 { get }
  • Transaction Identifier

    Declaration

    Swift

    private(set) public var transaction: UInt8 { get }
  • Transition Time

    Declaration

    Swift

    private(set) public var transition: MeshTransitionTime? { get }
  • Message execution delay

    Message execution delay in 5 millisecond steps

    Declaration

    Swift

    private(set) public var delay: UInt8? { get }
  • Create Message

    Declaration

    Swift

    public init(state: Int16, transaction: UInt8, transition: MeshTransitionTime?, delay: UInt8?)

    Parameters

    state

    Level State

    transaction

    Transaction Identifier

    transition

    Transition Time

    delay

    Message execution delay

  • Encodes into Data

    Declaration

    Swift

    public func encode() -> Result<Data, BluetoothEncodeError>

    Return Value

    Encoded Data Result