For each line read, terminated by delimiter(s), a signal is notified with the attribute serial_read
and the bytes read.
- baud: Baud rate of the serial port.
- delim1: First delimiter.
- delim2: Optional second delimiter.
- port: Serial port to read.
None
- default: For each input signal, a signal notified with the attribute
serial_read
and the bytes read.
None
Read from a serial port.
- baudrate: Baud rate of serial port.
- num_bytes: Number of bytes to read from the serial port.
- port: Serial port to read.
- retry_options: A selection of options to choose from when retrying to make a connection.
- timeout: Serial port timeout, in seconds.
- default: Any list of signals.
- default: For each input signal, a signal notifies with the attribute
serial_read
and the bytes read.
- disconnect_serial: Attempt to close the existing serial connection.
- reconnect_serial: Re-open the configured serial port.
Write to a serial port.
- baudrate: Baud rate of serial port.
- port: Serial port to write.
- retry_options: A selection of options to choose from when retrying to make a connection.
- timeout: Serial port timeout, in seconds.
- write_data: Data to write.
- default: Any list of signals.
- default: The same list of signals.
- disconnect_serial: Attempt to close the existing serial connection.
- reconnect_serial: Re-open the configured serial port.