Socket
Socket
Sign inDemoInstall

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 7.7.3 to 7.7.4-no-serial-port

4

examples/simple.js

@@ -11,4 +11,4 @@ /* eslint-disable no-console, spaced-comment */

// open connection to a serial port
client.connectRTUBuffered("/dev/ttyUSB0", { hupcl: false, dsrdtr: false })
//client.connectTCP("modbus.local", { port: 502 })
//client.connectRTUBuffered("/dev/ttyUSB0", { hupcl: false, dsrdtr: false })
client.connectTCP("127.0.0.1", { port: 8502 })
.then(setClient)

@@ -15,0 +15,0 @@ .then(function() {

{
"name": "modbus-serial",
"version": "7.7.3",
"version": "7.7.4-no-serial-port",
"description": "A pure JavaScript implemetation of MODBUS-RTU (Serial and TCP) for NodeJS.",

@@ -40,5 +40,4 @@ "main": "index.js",

"dependencies": {
"debug": "^4.1.1",
"serialport": "^7.1.5"
"debug": "^4.1.1"
}
}

@@ -152,3 +152,3 @@ "use strict";

}
else if (isGetCoil && vector.getCoil.length === 2) {
else if (isGetCoil) {
for (i = 0; i < length; i++) {

@@ -165,3 +165,3 @@ cb = buildCb(i);

}
else if (isGetDiscreteInpupt && vector.getDiscreteInput.length === 2) {
else if (isGetDiscreteInpupt) {
for (i = 0; i < length; i++) {

@@ -168,0 +168,0 @@ cb = buildCb(i);

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