node-switchbot
    Preparing search index...

    Interface CommandResult

    Device command result

    interface CommandResult {
        connectionType: ConnectionType;
        data?: any;
        error?: string;
        success: boolean;
        usedFallback?: boolean;
    }
    Index

    Properties

    connectionType: ConnectionType

    Connection type used

    data?: any

    Response data

    error?: string

    Error message (if failed)

    success: boolean

    Success status

    usedFallback?: boolean

    Whether API fallback was used