USBDevice.transferOut()

Experimental

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The transferOut() method of the USBDevice interface returns a promise that resolves with a USBTransferOutResult when bulk or interrupt data is sent to the USB device.

Syntax

var promise = USBDevice.transferOut(endpointNumber, data)

Parameters

endpointNumber
The number of a device-specific endpoint (buffer).
data
TypedArray containing the data to send to the device.

Return value

A promise that resolves with a USBTransferOutResult.

Specifications

Specification
WebUSB API
# ref-for-dom-usbdevice-transferout

Browser compatibility

BCD tables only load in the browser