Properties

address: Number

The address this device is connected to the Nexmosphere controller.

config: any

The device config.

lastData: undefined | XRange2SensorData

Returns the last data which was generated by the sensor.

name: string

The name of the device.

The device state.

type: string

The type of the device.

Methods

  • Returns void

  • Parameters

    • Optional tagNumber: number

    Returns void

  • Parameters

    • Optional tagNumber: number

    Returns void

  • Parameters

    • Optional tagNumber: number

    Returns void

  • Parameters

    • Optional tagNumber: number

    Returns void

  • Parameters

    • Optional tagNumber: number

    Returns void

  • Returns a promise which is fulfilled when the device is started.

    Returns Promise<any>

  • Parameters

    • Optional tagNumber: number

    Returns void

  • Parameters

    • label: number
    • Optional tagNumber: number

    Returns string

  • Returns undefined | number

  • Parameters

    • Optional tagNumber: number

    Returns string

  • Parameters

    • level: number

    Returns void

  • Parameters

    • interval: number

    Returns void

  • Parameters

    • index: number
    • format: number

    Returns void

  • Parameters

    • index: number
    • format: number

    Returns void

  • Parameters

    • level: number

    Returns void

  • Parameters

    • password: string

    Returns void

  • Parameters

    • level: number

    Returns void

  • Parameters

    • behavior: number

    Returns void

  • Parameters

    • level: number

    Returns void

  • Parameters

    • mode: number

    Returns void

  • Parameters

    • format: number

    Returns void

  • Starts the device when needed and returns a promise which is fulfilled when the device is started.

    Returns Promise<any>

  • Stops the device.

    Returns void

  • Parameters

    • Optional tagNumber: number

    Returns void

  • Parameters

    • label: number
    • text: string
    • Optional tagNumber: number

    Returns void

  • Parameters

    • newTagNumber: number
    • Optional tagNumber: number

    Returns void

Events

  • Registers a callback which will be triggered when the device encounters an error.

    Parameters

    • callback: ((error: Error) => void)

      The callback which will be called once the device encountered an error.

        • (error: Error): void
        • Parameters

          • error: Error

          Returns void

    Returns EventSubscription

Generated using TypeDoc