MDN self-hosted library · e01.org

USBDevice: selectConfiguration() method

WebUSB API

no runnable cells web-api-instance-method upstream source

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.

Specifications

Browser compatibility