OptionalbaudOptionalbufferOptionaldataOptionalfiltersFilters 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.
OptionalflowOptionallineLimits 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.
OptionalparityOptionalstopOptionalterminalLimits 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.
Options for creating a SerialSession via createSerialSession.
Composes Partial<SerialConnectionOptions> (W3C connection parameters passed to
port.open) with SerialSessionFeatureOptions (library-specific session features). All fields are optional; omitted values fall back to DEFAULT_SERIAL_SESSION_OPTIONS.Minimal usage typically only needs
baudRate:Example
Full example:
Example
Boundary semantics for numeric limits:
undefined— apply the default from DEFAULT_SERIAL_SESSION_OPTIONSbaudRate/bufferSize— must be safe integers> 0(rejected otherwise)terminalBuffer/lineBufferlimits — safe integers>= 0;0means unlimitedSee