mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-28 11:57:30 +00:00
14 lines
369 B
JavaScript
14 lines
369 B
JavaScript
// Test with the epic VirtualSerialPortApp - http://code.google.com/p/macosxvirtualserialport/
|
|
|
|
var SerialPort = require("./serialport").SerialPort;
|
|
var sys = require("sys"), repl = require("repl");
|
|
|
|
var serial_port = new SerialPort("/dev/master", 9600);
|
|
|
|
serial_port.on("data", function (data) {
|
|
sys.puts("here: "+data);
|
|
})
|
|
|
|
repl.start("=>")
|
|
|
|
//serial_port.close();
|