Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Session

Index

Constructors

constructor

Properties

auth

auth: Auth

sessionId

sessionId: string

Methods

getDeviceConfig

  • getDeviceConfig(deviceId: string, key: string, category?: string): Promise<any>
  • Parameters

    • deviceId: string
    • key: string
    • Default value category: string = "Config"

    Returns Promise<any>

getDevices

  • getDevices(): Promise<any>

pollMonitor

  • pollMonitor(deviceId: string, workId: WorkId): Promise<null | string>

post

  • post(path: string, data?: any): Promise<any>
  • Parameters

    • path: string
    • Optional data: any

    Returns Promise<any>

setDeviceControls

  • setDeviceControls(deviceId: string, values: any): Promise<any>
  • Parameters

    • deviceId: string
    • values: any

    Returns Promise<any>

startMonitor

  • startMonitor(deviceId: string): Promise<any>

stopMonitor

  • stopMonitor(deviceId: string, workId: WorkId): Promise<void>

Generated using TypeDoc