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

node-modbus

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-modbus - npm Package Compare versions

Comparing version 3.2.0 to 3.2.1

12

node-modbus/modbus-serial-client.js

@@ -17,3 +17,3 @@ /**

let SerialPort = require('serialport')
let crc = require('js-crc')
let crc = require('crc')
let serialport

@@ -168,10 +168,6 @@ let timerID

let crc16 = crc.crc16(buf)
let crcBuf = Buffer.allocUnsafe(2)
crcBuf.writeUInt16LE(crc16, 0)
let crcModbus = Buffer.from(crc.crc16modbus(buf), 'hex')
this.log.debug('crcModbus Buffer: ' + JSON.stringify(crcModbus) + ' crcModbus hex:' + crc.crc16(buf))
let bufWithCRC = Buffer.concat([buf, crcModbus])
this.log.debug('buffer: ' + buf + ' crc16: ' + crc16)
let bufWithCRC = Buffer.concat([buf, crc16])
this.log.debug('PDU in Endian-Type: ' + this.endianType +

@@ -178,0 +174,0 @@ ' and LITTLE-ENDIAN CRC via ' + this.connectionType + ' : ' + JSON.stringify(bufWithCRC))

{
"name": "node-modbus",
"version": "3.2.0",
"tag": "3.2.0-alpha-1",
"version": "3.2.1",
"tag": "3.2.0-alpha-5",
"description": "Sum of implementations for the Serial/TCP Modbus protocol.",

@@ -20,3 +20,3 @@ "author": "Klaus Landsdorf <klaus.landsdorf@bianco-royal.de>",

"bluebird": "^3.4.6",
"js-crc": "^0.1.0",
"crc": "^3.4.4",
"net": "^1.0.2",

@@ -23,0 +23,0 @@ "serialport": "^4.0.7",

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