node-serialport-bindings-cpp/test.js
Chris Williams a0018bb814 good to roll
2010-09-19 20:20:36 -04:00

9 lines
241 B
JavaScript

var SerialPort = require("./serialport").SerialPort;
var sys = require("sys");
var serial_port = new SerialPort("./sampleport");
serial_port.write("test");
serial_port.on("data", function () {
sys.puts("here");
})
// serial_port.close();