MeshMessageGenericLevelSetUnacknowledged

public struct MeshMessageGenericLevelSetUnacknowledged : MeshMessage

Mesh Message Generic Level Set Unacknowledged

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

  • 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