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
USBOutTransferResult 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
-
A
TypedArraycontaining the data to send to the device.
Return value
A promise that resolves with a USBOutTransferResult.
Specifications
| Specification |
|---|
| WebUSB API # ref-for-dom-usbdevice-transferout |
Browser compatibility
BCD tables only load in the browser