1 files changed, 9 insertions(+), 0 deletions(-)
A read_tty.sh
A read_tty.sh => read_tty.sh +9 -0
@@ 0,0 1,9 @@
+#!/bin/bash
+
+while true; do
+# read -N1 < /dev/ttyUSB0
+# printf '%#x\n' "$rtn"
+# read -r line </dev/ttyUSB0 && printf "%s\n" "$line"
+ cat < /dev/ttyUSB0 > logfile.txt
+# strings logfile.txt | tail -n 1
+done