serialport
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -0,1 +1,6 @@ | ||
Version 1.0.1 | ||
------------- | ||
- Fixed items from Firmata | ||
- Added flexibility for options (camelcase or all lower) | ||
Version 1.0.0 | ||
@@ -2,0 +7,0 @@ ------------- |
{ | ||
"name": "serialport", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Welcome your robotic javascript overlords. Better yet, program them!", | ||
@@ -5,0 +5,0 @@ "author": { |
@@ -15,7 +15,7 @@ <pre> | ||
Version: 1.0.0 - Released July 11, 2012 | ||
Version: 1.0.0 - Released July 13, 2012 - Now with Windows Support!!! | ||
***** | ||
Imagine a world where you can write JavaScript to control blenders, lights, security systems, or even robots. Yes, I said robots. That world is here and now with node-serialport. It provides a very simple interface to the low level serial port code necessary to program [Arduino](http://www.arduino.cc/) chipsets, [X10](http://www.smarthome.com/manuals/protocol.txt) wireless communications, or even the rising [Z-Wave](http://www.z-wave.com/modules/ZwaveStart/) and [Zigbee](http://www.zigbee.org/) standards. The physical world is your oyster with this goodie, don't believe us - watch [this presentation from JSConf EU 2010](http://jsconf.eu/2010/speaker/livingroombindmotion_function.html) by [Nikolai Onken](http://twitter.com/nonken) and [Jörn Zaefferer](http://bassistance.de/). | ||
Imagine a world where you can write JavaScript to control blenders, lights, security systems, or even robots. Yes, I said robots. That world is here and now with node-serialport. It provides a very simple interface to the low level serial port code necessary to program [Arduino](http://www.arduino.cc/) chipsets, [X10](http://www.smarthome.com/manuals/protocol.txt) wireless communications, or even the rising [Z-Wave](http://www.z-wave.com/modules/ZwaveStart/) and [Zigbee](http://www.zigbee.org/) standards. The physical world is your oyster with this goodie. For a full break down of why we made this, please read [NodeBots - The Rise of JS Robotics](http://www.voodootikigod.com/nodebots-the-rise-of-js-robotics). | ||
@@ -22,0 +22,0 @@ ***** |
@@ -77,10 +77,10 @@ "use strict"; | ||
options = options || {}; | ||
options.baudRate = options.baudRate || 9600; | ||
options.dataBits = options.dataBits || 8; | ||
options.baudRate = options.baudRate || options.baudrate || 9600; | ||
options.dataBits = options.dataBits || options.databits || 8; | ||
options.parity = options.parity || 'none'; | ||
options.stopBits = options.stopBits || 1; | ||
options.stopBits = options.stopBits || options.stopbits || 1; | ||
options.bufferSize = options.bufferSize || options.buffersize || 100; | ||
if (!('flowControl' in options)) { | ||
options.flowControl = false; | ||
} | ||
options.bufferSize = options.bufferSize || 100; | ||
options.dataCallback = function (data) { | ||
@@ -99,4 +99,7 @@ options.parser(self, data); | ||
path = '\\\\.\\' + path; | ||
} else { | ||
self.readStream = fs.createReadStream(path, { bufferSize: options.bufferSize }); | ||
} | ||
SerialPortBinding.open(path, options, function (err, fd) { | ||
self.fd = fd; | ||
self.readStream = fs.createReadStream(path, { bufferSize: options.bufferSize, fd: fd }); | ||
self.readStream.on("data", options.dataCallback); | ||
@@ -110,6 +113,2 @@ self.readStream.on("error", options.errorCallback); | ||
}); | ||
} | ||
SerialPortBinding.open(path, options, function (err, fd) { | ||
self.fd = fd; | ||
if (err) { | ||
@@ -116,0 +115,0 @@ return self.emit('error', err); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
3
204713
28
477