Stop arduino nodes warning about MaxEmitters

when more than 10 nodes in use
This commit is contained in:
Dave Conway-Jones 2019-12-03 21:38:33 +00:00
parent 23f584268a
commit 878f511d0e
No known key found for this signature in database
GPG Key ID: 302A6725C594817F
2 changed files with 3 additions and 1 deletions

View File

@ -72,6 +72,7 @@ module.exports = function(RED) {
if (typeof this.serverConfig === "object") {
var startup = function() {
node.board = node.serverConfig.board;
node.board.setMaxListeners(0);
node.oldval = "";
node.status({fill:"grey",shape:"ring",text:"node-red:common.status.connecting"});
var doit = function() {
@ -146,6 +147,7 @@ module.exports = function(RED) {
if (typeof node.serverConfig === "object") {
var startup = function() {
node.board = node.serverConfig.board;
node.board.setMaxListeners(0);
node.status({fill:"grey",shape:"ring",text:"node-red:common.status.connecting"});
var doit = function() {
node.running = true;

View File

@ -1,6 +1,6 @@
{
"name" : "node-red-node-arduino",
"version" : "0.3.0",
"version" : "0.3.1",
"description" : "A Node-RED node to talk to an Arduino running firmata",
"dependencies" : {
"firmata" : "^2.0.0"