Rs232CommunicatorConfiguration#
This is the class for the configuration for a RS232 communicator. This class inherits from CommunicatorConfiguration.
constructor Rs232CommunicatorConfiguration(baud_rate: int, com_port: str, data_bits: int, handshake: PyHandshake, parity: PyParity, stop_bits: PyStopBits, timeout_in_seconds: int, termination_character: str)#
Inializes a new instance of the Rs232CommunicatorConfiguration class.
Parameters#
| Name | Description |
|---|---|
| baud_rate | The baud rate. |
| com_port | The com port. |
| data_bits | The number of data bits. |
| handshake | The handshake. |
| parity | The parity. |
| stop_bits | The stop bits. |
| timeout_in_seconds | The timeout for communication in seconds. |
| termination_character | The termination character used in SendLine(). |
property baud_rate#
Queries the baud rate.
Returns#
| Type | Description |
|---|---|
| int | The baud rate. |
property com_port#
Queries the com port.
Returns#
| Type | Description |
|---|---|
| str | The com port. |
property data_bits#
Queries the data bits.
Returns#
| Type | Description |
|---|---|
| int | The data bits. |
property handshake#
Queries the handshake.
Returns#
| Type | Description |
|---|---|
| Handshake | The handshake. |
property parity#
Queries the parity.
Returns#
| Type | Description |
|---|---|
| Parity | The parity. |
property stop_bits#
Queries the stop bits.
Returns#
| Type | Description |
|---|---|
| StopBits | The stop bits. |