@lucadiba/switchbot-client
    Preparing search index...

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _deps: Deps
    _deviceId: string

    Methods

    • Create a new passcode.

      Parameters

      • params:
            | { name: string; password: string; type: "permanent"
            | "urgent" }
            | {
                endTime: Date;
                name: string;
                password: string;
                startTime: Date;
                type: "timeLimit" | "disposable";
            }

      Returns Promise<any>