Class Device

Hierarchy

  • ConnectionModel
    • Device

Implements

Indexable

  • [x: string]: any

Constructors

Properties

communication?: string
description?: string
edges: OntologyEdge[] = []
expand: number
manufacturer?: string
meta: Meta = ...
name: string
parent?: IModel
parentEdges: OntologyEdge[] = []
product?: string
protocol?: string
serial?: string
value: Value[] = []
version?: string
attributes: string[] = ...
checker: ICheckerSuite = ...
endpoint: string = '/2.1/device'
streamCallback: StreamHandlerCallbacks = ...

Accessors

  • get ontology(): OntologyEdge[]
  • Get the ontology edges of the current object.

    Returns OntologyEdge[]

    The ontology edges of the current object.

    This is here for backwards compatibility.

    Should use edges instead.

  • set ontology(edges: OntologyEdge[]): void
  • Set the ontology edges of the current object.

    Parameters

    Returns void

    This is here for backwards compatibility.

    Should use edges instead.

Methods

  • Returns void

  • Parameters

    • tag: string

    Returns Promise<boolean>

  • Returns Promise<boolean>

  • Parameters

    • name: string | ICreateValue
    • Optionalpermission: ValuePermission
    • OptionalvalueTemplate: ValueType
    • Optionalperiod: string | number
    • Optionaldelta: number | "inf"
    • OptionaldisableLog: boolean
    • OptionaldisablePeriodAndDelta: boolean

    Returns Promise<Value>

  • Returns Promise<void>

  • Parameters

    • json: null | JSONObject
    • _reloadAll: boolean = false

    Returns Promise<void>

  • Parameters

    • OptionalreloadAll: boolean
    • OptionaldefaultExpand: number

    Returns Promise<boolean>

  • Parameters

    • OptionalreloadAll: boolean
    • defaultExpand: number = 0

    Returns Promise<boolean>

  • Parameters

    • tag: string

    Returns Promise<boolean>

  • Parameters

    • state: number | boolean

    Returns Promise<boolean>

  • Parameters

    • user: string

    Returns Promise<any>

  • Parameters

    • OptionalcustomKeys: string[]

    Returns Promise<boolean>

  • Returns boolean

  • Parameters

    • name: string
    • params: any

    Returns void

  • Parameters

    • name: string
    • readOnly: boolean = false
    • usage: string = ''

    Returns Promise<Device[]>

  • Parameters

    • product: string
    • readOnly: boolean = false
    • usage: string = ''

    Returns Promise<Device[]>

  • Parameters

    • filter: Filter
    • omit_filter: Filter = {}
    • quantity: number | "all" = 1
    • readOnly: boolean = false
    • usage: string = ''

    Returns Promise<Device[]>

  • Parameters

    • name: string
    • quantity: number | "all" = 1
    • readOnly: boolean = false
    • usage: string = ''

    Returns Promise<Device[]>

  • Parameters

    • product: string
    • quantity: number | "all" = 1
    • readOnly: boolean = false
    • usage: string = ''

    Returns Promise<Device[]>

  • Parameters

    Returns string

  • Parameters

    • options: {
          body?: JSONObject;
          create?: boolean;
          endpoint: string;
          message: string;
          params?: JSONObject;
          quantity: number | "all";
          readOnly?: boolean;
      }

    Returns Promise<JSONObject[]>

  • Parameters

    • type: undefined | string
    • name: string
    • params: any
    • isStatic: boolean = false

    Returns void