Header menu logo fable-electron-docs-api

HIDDevice Type

Constructors

Constructor Description

HIDDevice(deviceId, name, vendorId, productId, collections, ?serialNumber, ?guid)

Full Usage: HIDDevice(deviceId, name, vendorId, productId, collections, ?serialNumber, ?guid)

Parameters:
    deviceId : string - Unique identifier for the device.
    name : string - Name of the device.
    vendorId : int - The USB vendor ID.
    productId : int - The USB product ID.
    collections : Collections[] - an array of report formats. See MDN documentation for more.
    ?serialNumber : string - The USB device serial number.
    ?guid : string - Unique identifier for the HID interface. A device may have multiple HID interfaces.

Returns: HIDDevice
deviceId : string

Unique identifier for the device.

name : string

Name of the device.

vendorId : int

The USB vendor ID.

productId : int

The USB product ID.

collections : Collections[]

an array of report formats. See MDN documentation for more.

?serialNumber : string

The USB device serial number.

?guid : string

Unique identifier for the HID interface. A device may have multiple HID interfaces.

Returns: HIDDevice

Instance members

Instance member Description

this.collections

Full Usage: this.collections

an array of report formats. See MDN documentation for more.

this.deviceId

Full Usage: this.deviceId

Unique identifier for the device.

this.guid

Full Usage: this.guid

Unique identifier for the HID interface. A device may have multiple HID interfaces.

this.name

Full Usage: this.name

Name of the device.

this.productId

Full Usage: this.productId

The USB product ID.

this.serialNumber

Full Usage: this.serialNumber

The USB device serial number.

this.vendorId

Full Usage: this.vendorId

The USB vendor ID.

Type something to start searching.