mirror of
https://github.com/siemens-mobile-hacks/node-serialport-bindings-cpp.git
synced 2026-11-26 19:07:18 +00:00
8 lines
275 B
JavaScript
8 lines
275 B
JavaScript
// Test with the epic VirtualSerialPortApp - http://code.google.com/p/macosxvirtualserialport/
|
|
|
|
var SerialPort = require("../serialport").SerialPort;
|
|
|
|
var serial_port = new SerialPort("/dev/master", {baudrate: 9600});
|
|
|
|
serial_port.write("It worked!\r");
|
|
serial_port.close();
|