UNPKG

@viguza/homebridge-ezviz

Version:

A short description about what your plugin does.

22 lines (21 loc) 667 B
import { Logging } from 'homebridge'; export type MqttMessageCallback = (deviceSerial: string) => void; export declare class EzvizMqttClient { private readonly pushAddr; private readonly sessionId; private readonly username; private readonly log; private mqttClient; private clientId; private ticket; private readonly topic; private onMessage; constructor(pushAddr: string, sessionId: string, username: string, onMessage: MqttMessageCallback, log: Logging); connect(): Promise<void>; stop(): void; private register; private startPush; private stopPush; private connectMqtt; private decodePayload; }