Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 485 Bytes

README.md

File metadata and controls

41 lines (27 loc) · 485 Bytes

Send data from serial to socket.io

requirements

  • Flask
  • Flask-Socket.IO
  • PySerial
  • socat and screen for simulation

run

$ sudo python app.py

simulation

using socat and screen.

$ sudo apt install socat screen
$ sudo socat -d -d pty,link=/dev/ttyS0,raw,echo=0 pty,link=/dev/ttyS1,raw,echo=0

run the server

$ sudo python app.py

open the browser, it's on http://localhost:5000

$ sudo screen /dev/ttyS1

Then type!

license

MIT