Node USB
    Preparing search index...

    Interface USBOptions

    USB Options

    interface USBOptions {
        allowAllDevices?: boolean;
        allowedDevices?: USBDeviceFilter[];
        autoDetachKernelDriver?: boolean;
        devicesFound?: (devices: USBDevice[]) => Promise<void | USBDevice>;
        deviceTimeout?: number;
    }
    Index

    Properties

    allowAllDevices?: boolean

    Optional flag to automatically allow all devices

    allowedDevices?: USBDeviceFilter[]

    Optional array of preconfigured allowed devices

    autoDetachKernelDriver?: boolean

    Optional flag to enable/disable automatic kernal driver detaching (defaults to true)

    devicesFound?: (devices: USBDevice[]) => Promise<void | USBDevice>

    Optional device found callback function to allow the user to select a device

    deviceTimeout?: number

    Optional timeout (in milliseconds) to use for the device control transfers