node-modbus
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -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", |
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
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
85708
1701
+ Addedcrc@^3.4.4
+ Addedbase64-js@1.5.1(transitive)
+ Addedbuffer@5.7.1(transitive)
+ Addedcrc@3.8.0(transitive)
+ Addedieee754@1.2.1(transitive)
- Removedjs-crc@^0.1.0
- Removedjs-crc@0.1.0(transitive)