Skip to content

Commit

Permalink
Merge pull request #90 from yaacov/require-serialport-cleanups
Browse files Browse the repository at this point in the history
Cleanups after making serialport a requiremant
  • Loading branch information
yaacov authored Mar 16, 2017
2 parents 8ce49e6 + f8227a5 commit 3ec9a39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@ try these options on npm install to build, if you have problems to install

--unsafe-perm --build-from-source

For use over serial port (ModbusRTU), also install node-serialport:

npm install [email protected]


#### What can I do with this module ?

Expand Down
4 changes: 1 addition & 3 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -629,9 +629,7 @@ require("./apis/promise")(ModbusRTU);
// exports
module.exports = ModbusRTU;
module.exports.TestPort = require("./ports/testport");
try {
module.exports.RTUBufferedPort = require("./ports/rtubufferedport");
} catch (err) {}
module.exports.RTUBufferedPort = require("./ports/rtubufferedport");
module.exports.TcpPort = require("./ports/tcpport");
module.exports.TcpRTUBufferedPort = require("./ports/tcprtubufferedport");
module.exports.TelnetPort = require("./ports/telnetport");
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@
},
"dependencies": {
"debug": "^2.6.1",
"serialport": "4.0.7"
"serialport": "^4.0.7"
}
}

0 comments on commit 3ec9a39

Please sign in to comment.