Type Parameters

  • T extends AutoDetectTypes = AutoDetectTypes

Hierarchy

  • SerialPortStream<T>
    • SerialPort

Constructors

Properties

binding: AutoDetectTypes = DetectedBinding
list: (() => Promise<PortInfo[]>) = DetectedBinding.list

Type declaration

    • (): Promise<PortInfo[]>
    • Retrieves a list of available serial ports with metadata. The path must be guaranteed, and all other fields should be undefined if unavailable. The path is either the path or an identifier (eg COM1) used to open the serialport.

      Returns Promise<PortInfo[]>

Methods

  • Returns Promise<{
        cts: boolean;
        dcd: boolean;
        dsr: boolean;
    }>