This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Simple example that takes a command line provided serial port destination and routes the output to a file of the same name with .log appended to the port name. | |
usage: node logger.js /dev/tty.usbserial <baudrate> | |
*/ | |
var SerialPort = require("serialport"); | |
var fs = require("fs"); | |
var port = process.argv[2]; |