Properties
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>
-
Parameters
Returns 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>
-
Parameters
Returns Promise<any>
stopMonitor
- stopMonitor(deviceId: string, workId: WorkId): Promise<void>
-
Parameters
Returns Promise<void>