OptionalbaudBaud rate for the serial port connection (bits per second).
Common values include 9600, 19200, 38400, 57600, 115200, etc. Must match the baud rate configured on the connected device.
OptionalbufferBuffer size for reading data from the serial port, in bytes.
This determines how much data can be buffered before it needs to be read. Larger buffers can improve performance but use more memory.
OptionaldataNumber of data bits per character (7 or 8).
7: Seven data bits (used with parity)8: Eight data bits (most common, used without parity)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
to filter by USB device identifiers.
OptionalflowFlow control mode.
'none': No flow control (most common)'hardware': Hardware flow control (RTS/CTS)OptionalparityParity checking mode.
'none': No parity checking (most common)'even': Even parity'odd': Odd parityOptionalstopNumber of stop bits (1 or 2).
1: One stop bit (most common)2: Two stop bits (less common, used for slower devices)
Options for creating a SerialClient instance.
These options configure the serial port connection parameters. All properties are optional and will use default values if not specified. See DEFAULT_SERIAL_CLIENT_OPTIONS for the default values used.
Example