UNPKG

dt-common-device

Version:

A secure and robust device management library for IoT applications

8 lines (7 loc) 297 B
export declare class EventHandler { private readonly source; constructor(); onStateChange(deviceId: string, state: any): Promise<void>; onStatusChange(deviceId: string, status: any): Promise<void>; onBatteryLevelChange(deviceId: string, batteryLevel: number): Promise<void>; }