Dart implementation of a serial to tcp wedge.
Connect an RS-232 serial device to a TCP Server Socket bi-directionally.
Linux dependency is "libserialport-dev" (Debian, etc.)
This is a straighforward (read "un-polished") example to send all data from the serial port to the TCP server's connected client TCP socket (and back!).
One could do the same with UDP or Domain sockets as well.
TODO: Needs a watchdog on the serial connection to re-make the link if it fails or goes away.
To start the program, call the resulting compiled filename with up to three parameters. See the main() function for more explanation and defaults.
- serial port name. COM5 or ttyACM0, etc. (no path to *nix devices)
- serial port baud rate (115200 def., 57600, etc, etc.)
- TCP port to listen on for the TCP Server side (19798 def.)