modbus-serial
Advanced tools
Comparing version 3.7.0 to 3.7.1
{ | ||
"name": "modbus-serial", | ||
"version": "3.7.0", | ||
"version": "3.7.1", | ||
"description": "A pure JavaScript implemetation of MODBUS-RTU (and TCP) for NodeJS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -78,7 +78,7 @@ 'use strict'; | ||
this._client.on('listening', function() { | ||
this.openFlag = true; | ||
modbus.openFlag = true; | ||
}); | ||
this._client.on('close', function(had_error) { | ||
this.openFlag = false; | ||
modbus.openFlag = false; | ||
}); | ||
@@ -85,0 +85,0 @@ |
@@ -14,3 +14,3 @@ 'use strict'; | ||
var TcpPort = function(ip, options) { | ||
var _tcpport = this; | ||
var modbus = this; | ||
this.ip = ip; | ||
@@ -39,11 +39,11 @@ this.openFlag = false; | ||
// emit a data signal | ||
_tcpport.emit('data', buffer); | ||
modbus.emit('data', buffer); | ||
}); | ||
this._client.on('connect', function() { | ||
this.openFlag = true; | ||
modbus.openFlag = true; | ||
}); | ||
this._client.on('close', function(had_error) { | ||
this.openFlag = false; | ||
modbus.openFlag = false; | ||
}); | ||
@@ -50,0 +50,0 @@ |
@@ -89,7 +89,7 @@ 'use strict'; | ||
this._client.on('connect', function() { | ||
this.openFlag = true; | ||
modbus.openFlag = true; | ||
}); | ||
this._client.on('close', function(had_error) { | ||
this.openFlag = false; | ||
modbus.openFlag = false; | ||
}); | ||
@@ -96,0 +96,0 @@ |
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
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
92993
28
1