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" |
10 | socat ${OPTIONS} "${DEVICE},echo=0" "TCP-LISTEN:${PORT},reuseaddr" |
11 | done |