Skip to content

probe-web / @probe-web/serial / SerialOpenOptions

Interface: SerialOpenOptions

Defined in: index.ts:50

Line settings for SerialConnection.open, as WebSerial's SerialPort.open() takes them. Unset fields default to 8N1 without flow control.

Properties

PropertyTypeDescriptionDefined in
baudRatenumberBits per second, e.g. one of BAUD_RATES.index.ts:52
dataBits?7 | 8Data bits per frame (default 8).index.ts:54
stopBits?1 | 2Stop bits per frame (default 1).index.ts:56
parity?"none" | "even" | "odd"Parity (default none).index.ts:58
flowControl?"none" | "hardware"hardware uses RTS/CTS (default none).index.ts:60
bufferSize?numberSize of the browser's read and write buffers, in bytes (browser default if unset).index.ts:62