Serial port information returned by list()

interface SerialPortInfo {
    friendlyName?: string;
    locationId?: string;
    manufacturer?: string;
    path: string;
    pnpId?: string;
    productId?: string;
    serialNumber?: string;
    vendorId?: string;
}

Properties

friendlyName?: string

Friendly name

locationId?: string

Location ID

manufacturer?: string

Manufacturer name

path: string

Port path (e.g., 'COM3', '/dev/ttyUSB0')

pnpId?: string

PNP ID (Windows)

productId?: string

Product ID

serialNumber?: string

Serial number

vendorId?: string

Vendor ID