electron/docs/api/structures/serial-port.md
John Kleinschmidt fd63510ca9
feat: add serial api support (#25237)
* feat: add serial api support

resolves #22478

* Put serial port support behind a flag and mark as experimental

* Update docs/api/session.md

Co-authored-by: Jeremy Rose <jeremya@chromium.org>

* Use enable-blink-features=Serial instead of enable-experimental-web-platform-features

* Set enableBlinkFeatures on webPreferences instead of commandline

Co-authored-by: Jeremy Rose <jeremya@chromium.org>
2020-09-28 12:22:03 -04:00

428 B

SerialPort Object

  • portId String - Unique identifier for the port
  • portName String - Name of the port
  • displayName String - Addtional information for the port
  • persistentId String - This platform-specific identifier, if present, can be used to identify the device across restarts of the application and operating system.
  • vendorId String - Optional USB vendor ID
  • productId String - Optional USB product ID