OptionalfiltersFilters for port selection when requesting a port.
When specified, the port selection dialog will only show devices
matching these filters. Each filter can specify usbVendorId and/or
usbProductId. Not passed to port.open.
OptionallineLimits for the incomplete line tail held by SerialSession.lines$ framing. When exceeded, leading characters are discarded and a non-fatal SerialErrorCode.LINE_BUFFER_OVERFLOW is emitted on SerialSession.errors$. Character counts use UTF-16 string length.
Pass 0 for maxChars to disable the limit (unlimited). Negative values,
non-integers, NaN, and Infinity are rejected at factory time.
OptionalterminalLimits for SerialSession.terminalText$ display memory. Oldest
completed lines and leading characters are dropped when exceeded.
Character counts use UTF-16 string length (JavaScript .length).
Pass 0 for maxLines or maxChars to disable that limit (unlimited).
Negative values, non-integers, NaN, and Infinity are rejected at
factory time.
Library-specific options for createSerialSession that are not passed to W3C
port.open.Responsibility split (Issue #488):
navigator.serial.requestPort)Connection parameters (
baudRate,dataBits, …) live on SerialConnectionOptions and are composed into SerialSessionOptions. Minimal callers typically only setbaudRate; other fields keep safe defaults.See