node-switchbot
    Preparing search index...

    Interface LockCommands

    interface LockCommands {
        getLockInfo?: () => Promise<Record<string, unknown>>;
        lock: () => Promise<boolean>;
        offLockNotification?: (handler: (payload: Buffer) => void) => void;
        onLockNotification?: (handler: (payload: Buffer) => void) => Promise<void>;
        unlock: () => Promise<boolean>;
        unlockWithoutUnlatch?: () => Promise<boolean>;
    }

    Implemented by

    Index

    Properties

    getLockInfo?: () => Promise<Record<string, unknown>>
    lock: () => Promise<boolean>
    offLockNotification?: (handler: (payload: Buffer) => void) => void
    onLockNotification?: (handler: (payload: Buffer) => void) => Promise<void>
    unlock: () => Promise<boolean>
    unlockWithoutUnlatch?: () => Promise<boolean>