UNPKG

dt-common-device

Version:

A secure and robust device management library for IoT applications

12 lines (11 loc) 548 B
export declare class EventHandler { private readonly source; constructor(); onDeviceCreate(body: any): Promise<void>; onDeviceUpdate(deviceId: string, body: any): Promise<void>; onDeviceDelete(deviceId: string): Promise<void>; onStateChange(deviceId: string, state: any): Promise<void>; onStatusChange(deviceId: string, status: any): Promise<void>; onBatteryLevelChange(deviceId: string, batteryLevel: number): Promise<void>; onDeviceMetaChange(deviceId: string, metaData: Record<string, any>): Promise<void>; }