modbus-serial
Advanced tools
Comparing version 4.5.0 to 4.5.1
// Create serial port | ||
var SerialPort = require("serialport").SerialPort; | ||
var serialPort = new SerialPort("/dev/ttyUSB0", {baudrate: 9600}); | ||
var SerialPort = require("serialport"); | ||
var serialPort = new SerialPort("/dev/ttyUSB0", {baudrate: 9600, autoOpen: false}); | ||
var lastAns = Date.now(); | ||
@@ -5,0 +5,0 @@ |
// Create serial port | ||
var SerialPort = require("serialport").SerialPort; | ||
var serialPort = new SerialPort("/dev/ttyUSB0", {baudrate: 9600}); | ||
var SerialPort = require("serialport"); | ||
var serialPort = new SerialPort("/dev/ttyUSB0", {baudrate: 9600, autoOpen: false}); | ||
@@ -5,0 +5,0 @@ // Create modbus master |
{ | ||
"name": "modbus-serial", | ||
"version": "4.5.0", | ||
"version": "4.5.1", | ||
"description": "A pure JavaScript implemetation of MODBUS-RTU (and TCP) for NodeJS.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -516,4 +516,4 @@ # modbus-serial | ||
// open a serial port | ||
var SerialPort = require("serialport").SerialPort; | ||
var serialPort = new SerialPort("/dev/ttyUSB0", {baudrate: 9600}); | ||
var SerialPort = require("serialport"); | ||
var serialPort = new SerialPort("/dev/ttyUSB0", {baudrate: 9600, autoOpen: false}); | ||
@@ -520,0 +520,0 @@ // create a modbus client using the serial port |
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
121610