USBDevice: selectConfiguration() method
WebUSB API
WebUSB API
The selectConfiguration() method of the
USBDevice interface returns a Promise that resolves when
the specified configuration is selected.
Syntax
selectConfiguration(configurationValue)
Parameters
configurationValue- : The number of a device-specific configuration.
Return value
A Promise.