Upgrade to latest underlying npm to support node8.x LTS

This commit is contained in:
Dave Conway-Jones
2017-11-04 17:12:48 +00:00
parent fce96ff196
commit 388ad11b72
4 changed files with 21 additions and 18 deletions

View File

@@ -211,11 +211,11 @@ module.exports = function(RED) {
var olderr = "";
var setupSerial = function() {
obj.serial = new serialp(port,{
baudrate: baud,
databits: databits,
baudRate: baud,
dataBits: databits,
parity: parity,
stopbits: stopbits,
parser: serialp.parsers.raw,
stopBits: stopbits,
//parser: serialp.parsers.raw,
autoOpen: true
}, function(err, results) {
if (err) {
@@ -256,9 +256,9 @@ module.exports = function(RED) {
obj._emitter.emit('data',d[z]);
}
});
obj.serial.on("disconnect",function() {
RED.log.error(RED._("serial.errors.disconnected",{port:port}));
});
// obj.serial.on("disconnect",function() {
// RED.log.error(RED._("serial.errors.disconnected",{port:port}));
// });
}
setupSerial();
return obj;