Open Collective
来源:Electron
浏览 188
扫码
分享
2021-11-19 21:53:27
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.productId
String - Optional USB product ID.serialNumber
String - The USB device serial number.usbDriverName
String (optional) - Represents a single serial port on macOS can be enumerated by multiple drivers.deviceInstanceId
String (optional) - A stable identifier on Windows that can be used for device permissions.