Function getDeviceUSBStrings

  • Get USB device strings. Maximum length is 256 bytes.

    Parameters

    • index: number

      the device index

    Returns DeviceUSBStrings

    manufacturer, serial, and product name, may be null

    let strings = rtljs.getDeviceUSBStrings(0);
    console.log(`${strings.manufacturer}, ${strings.product}, ${strings.serial});