Skip to content

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

Notifications You must be signed in to change notification settings

diorahman/pyserial-to-socket-io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published