Socket
Socket
Sign inDemoInstall

jsmodbus

Package Overview
Dependencies
204
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.4 to 1.0.5

1

examples/tcp/AutoReconnect.js

@@ -6,2 +6,3 @@ var modbus = require('../..'),

'autoReconnect' : true,
'reconnectTimeout' : 5000,
'logEnabled' : true

@@ -8,0 +9,0 @@ }).connect(),

2

package.json
{
"name": "jsmodbus",
"version": "1.0.4",
"version": "1.0.5",
"description": "Implementation for the Serial/TCP Modbus protocol.",

@@ -5,0 +5,0 @@ "author": "Stefan Poeter <stefan.poeter@cloud-automation.de>",

@@ -29,7 +29,8 @@ A simple an easy to use Modbus TCP client/server implementation.

var client = modbus.client.tcp.complete({
'host' : host,
'port' : port,
'autoReconnect' : true,
'timeout' : 5000,
'unitId' : 0
'host' : host,
'port' : port,
'autoReconnect' : true,
'reconnectTimeout' : 1000,
'timeout' : 5000,
'unitId' : 0
});

@@ -36,0 +37,0 @@

@@ -26,2 +26,3 @@ var stampit = require('stampit'),

if (!this.autoReconnect) { this.autoReconnect = false; }
if (!this.reconnectTimeout) { this.reconnectTimeout = 0; }

@@ -72,5 +73,8 @@ this.on('send', onSend);

reconnect = false;
setTimeout(function () {
reconnect = false;
connect();
connect();
}, this.reconnectTimeout || 0);

@@ -77,0 +81,0 @@ }

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc