modbus-serial
Advanced tools
Comparing version 4.4.3 to 4.5.0
@@ -40,6 +40,8 @@ 'use strict'; | ||
} | ||
// disable auto open, as we handle the open | ||
options.autoOpen = false; | ||
// create the SerialPort | ||
var SerialPort = require("serialport").SerialPort; | ||
this._port = new SerialPort(path, options, false); | ||
var SerialPort = require("serialport"); | ||
this._port = new SerialPort(path, options); | ||
@@ -46,0 +48,0 @@ // open and call next |
{ | ||
"name": "modbus-serial", | ||
"version": "4.4.3", | ||
"version": "4.5.0", | ||
"description": "A pure JavaScript implemetation of MODBUS-RTU (and TCP) for NodeJS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var EventEmitter = events.EventEmitter || events; | ||
var SerialPort = require("serialport").SerialPort; | ||
var SerialPort = require("serialport"); | ||
@@ -94,2 +94,5 @@ var crc16 = require('./../utils/crc16'); | ||
// disable auto open, as we handle the open | ||
options.autoOpen = false; | ||
// internal buffer | ||
@@ -102,3 +105,3 @@ this._buffer = new Buffer(0); | ||
// create the SerialPort | ||
this._client= new SerialPort(path, options, false); | ||
this._client= new SerialPort(path, options); | ||
@@ -105,0 +108,0 @@ // register the port data event |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var EventEmitter = events.EventEmitter || events; | ||
var SerialPort = require("serialport").SerialPort; | ||
var SerialPort = require("serialport"); | ||
@@ -19,2 +19,5 @@ var EXCEPTION_LENGTH = 5; | ||
// disable auto open, as we handle the open | ||
options.autoOpen = false; | ||
// internal buffer | ||
@@ -27,3 +30,3 @@ this._buffer = new Buffer(0); | ||
// create the SerialPort | ||
this._client= new SerialPort(path, options, false); | ||
this._client= new SerialPort(path, options); | ||
@@ -30,0 +33,0 @@ // register the port data event |
@@ -10,5 +10,5 @@ 'use strict'; | ||
*/ | ||
var SerialPortMock = function(path, options, openImmediately, callback) { | ||
var SerialPortMock = function(path, options, callback) { | ||
EventEmitter.call(this); | ||
this._openFlag = openImmediately; | ||
this._openFlag = false; | ||
if (callback) { | ||
@@ -51,2 +51,2 @@ callback(null); | ||
module.exports.SerialPort = SerialPortMock; | ||
module.exports = SerialPortMock; |
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
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
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
2959
121592
39