Advertisement
cindy_wijaya

Baca data serial

Oct 7th, 2016
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. stty -F $(uci get owrt.alat.devio) 9600
  2.  
  3. while true;
  4. do
  5. j=0
  6. cat $(uci get owrt.alat.devio) | while read ligne
  7. do
  8. j=$(($j+1))
  9. if [ $j -gt "1" ]; then
  10. echo $ligne > /tmp/devio.txt
  11. logger "raw data alat terkirim"
  12. fi
  13. done
  14. sleep 10
  15. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement