Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

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

About

A simple example of sending data from a pyserial connection to socket.io

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages