Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NodeJS reading TTY Serial

Tags:

node.js

tty

I can't find any examples of simply reading a serial port on a machine using Node.JS and seems I'm not the only one looking.

Quite recently it is an included library but I can't make head or tail of it!

http://nodejs.org/docs/v0.3.8/api/tty.html

Does anyone have an example of simply reading the serial port and just console.log the output?

like image 434
Lee Armstrong Avatar asked Dec 28 '22 22:12

Lee Armstrong


1 Answers

Try to look at node-serialport module source.

like image 117
yojimbo87 Avatar answered Jan 10 '23 16:01

yojimbo87