USBDevice: transferOut() method
WebUSB API
WebUSB API
The transferOut() method of the USBDevice
interface returns a Promise that resolves with a
USBOutTransferResult when bulk or interrupt data is sent to the USB
device.
Syntax
transferOut(endpointNumber, data)
Parameters
endpointNumber- : The number of a device-specific endpoint (buffer).
data- : A TypedArray containing the data to send to the device.
Return value
A Promise that resolves with a USBOutTransferResult.