Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KiirooCmd

Hierarchy

Index

Constructors

constructor

  • new KiirooCmd(aCommand?: number, DeviceIndex?: number, Id?: number): KiirooCmd
  • Parameters

    • Default value aCommand: number = 0
    • Default value DeviceIndex: number = -1
    • Default value Id: number = DEFAULT_MESSAGE_ID

    Returns KiirooCmd

Properties

Command

Command: string = "0"

DeviceIndex

DeviceIndex: number

Id

Id: number

Accessors

Position

  • get Position(): number
  • set Position(aPos: number): void
  • Returns number

  • Parameters

    • aPos: number

    Returns void

SchemaVersion

  • get SchemaVersion(): number

Type

  • get Type(): Function
  • Returns the message type name

    Usually, the message type name will be the same as the message class constructor, so the constructor name is used by default. However, in instances where a message has different versions (i.e. DeviceAddedVersion0 and DeviceAddedVersion1), we will need to override this to set the message name.

    Returns Function

Methods

DowngradeMessage

getType

  • getType(): Function
  • [DEPRECATED] Function version of the this.Type getter

    Returns Function

toJSON

  • toJSON(): string

toProtocolFormat

  • toProtocolFormat(): object

Generated using TypeDoc