Serial Client
The serial.client module connects to a serial device and emits a message messages based on the data it receives from the port. Messages are determined by “framing” techniques as serial is a stream based protocol.
- type:
serial.client - params:
- baudRate: the baud rate to use when connecting to the serial port
- framing: the method to use for framing messages on the serial port
- port: the name of the serial port to connect to
Example
Section titled “Example”Open a serial connection to /dev/ttyS0 with a buad rate of 115200, any incoming data will be split on line-feed (\n)
- id: serialClient type: serial.client params: port: "/dev/ttyS0" baudRate: 115200 framing: LF