d1ff840a MG |
1 | #!/bin/sh |
2 | |
3 | DEVICE=/dev/ttyACM0,b9600 |
4 | PORT=2323 |
5 | #OPTIONS="-ly -lh" |
6 | #OPTIONS="-v -x" |
7 | |
8 | while true; do |
9 | echo "Listening on port ${PORT} for new connection requests" |
7a60ac2c |
10 | socat ${OPTIONS} "${DEVICE},raw,echo=0" "TCP-LISTEN:${PORT},reuseaddr" |
d1ff840a |
11 | done |