Search code examples
node.jstty

NodeJS reading TTY Serial


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?


Solution

  • Try to look at node-serialport module source.