SerialPort_ReadString
Reads string characters from serial port.
Syntax
C++
Python
def SerialPort_ReadString( state: SerialPortState, /, *, inPortId: int = 0 ) -> ( outString: str | None, outOverflowOccurred: bool )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
ioState | SerialPortState | |||
![]() |
inPortId | int | 0 - 7 | 0 | Identifies open port instance when working with multiple serial ports |
![]() |
outString | str | None | Conditionally returns string with concatenated all characters available in input buffer. | ||
![]() |
outOverflowOccurred | bool | True when the internal read buffer reached its maximum size and oldest data was dropped since the last call. |



