Interface USBOptions

USB Options

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

Properties

allowAllDevices?: boolean

Optional flag to automatically allow all devices

allowedDevices?: USBDeviceFilter[]

Optional array of preconfigured allowed devices

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