Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

modbus-serial

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

modbus-serial - npm Package Compare versions

Comparing version 3.7.0 to 3.7.1

examples/talnet.py

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc