This commit is contained in:
2025-11-11 00:04:55 -06:00
parent a76ad41fde
commit 40538eddfd
6405 changed files with 1289756 additions and 0 deletions

28
build/mqtt/service.d.ts vendored Normal file
View File

@ -0,0 +1,28 @@
import { TypedEmitter } from "tiny-typed-emitter";
import { MQTTServiceEvents } from "./interface";
export declare class MQTTService extends TypedEmitter<MQTTServiceEvents> {
private readonly CLIENT_ID_FORMAT;
private readonly USERNAME_FORMAT;
private readonly SUBSCRIBE_NOTICE_FORMAT;
private readonly SUBSCRIBE_LOCK_FORMAT;
private readonly SUBSCRIBE_DOORBELL_FORMAT;
private static proto;
private connected;
private client;
private connecting;
private clientID?;
private androidID?;
private apiBase?;
private email?;
private subscribeLocks;
private deviceSmartLockMessageModel;
private constructor();
static init(): Promise<MQTTService>;
private parseSmartLockMessage;
private getMQTTBrokerUrl;
connect(clientID: string, androidID: string, apiBase: string, email: string): void;
private _subscribeLock;
subscribeLock(deviceSN: string): void;
isConnected(): boolean;
close(): void;
}