这不是您要找的东西吗?
while read -r line < /dev/ttyS2; do # $line is the line read, do something with it echo $result > /dev/ttyS2done
上一篇 在C中访问按键
下一篇 信号处理
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号