open

inline suspend fun SerialPort.open(options: SerialOptions)(source)

The open() method of the SerialPort interface returns a Promise that resolves when the port is opened. By default the port is opened with 8 data bits, 1 stop bit and no parity checking. The baudRate parameter is required.

MDN Reference