Function getIndexBySerial

  • Get device index by USB serial string descriptor.

    Parameters

    • serial: string

      Serial string of the device

    Returns number

    Device index of the first serial match