Skip to main content

SerialPort Object

  • portId string - Unique identifier for the port.端口的唯一标识符。
  • portName string - Name of the port.端口的名称。
  • displayName string - A string suitable for display to the user for describing this device.适合显示给用户用于描述该设备的字符串。
  • vendorId string - Optional USB vendor ID.可选USB供应商ID。
  • productId string - Optional USB product ID.可选USB产品ID。
  • serialNumber string - The USB device serial number.USB设备序列号。
  • usbDriverName string (optional) - Represents a single serial port on macOS can be enumerated by multiple drivers.表示macOS上的单个串行端口可以由多个驱动程序枚举。
  • deviceInstanceId string (optional) - A stable identifier on Windows that can be used for device permissions.Windows上可用于设备权限的稳定标识符。