node-red-node-arduino
Advanced tools
Comparing version
@@ -207,6 +207,12 @@ | ||
RED.httpAdmin.get("/arduinoports", RED.auth.needsPermission("arduino.read"), function(req,res) { | ||
SP.list(function(error, ports) { | ||
res.json(ports); | ||
}); | ||
SP.list().then( | ||
ports => { | ||
const a = ports.map(p => p.comName); | ||
res.json(a); | ||
}, | ||
err => { | ||
this.log('Error listing serial ports', err) | ||
} | ||
) | ||
}); | ||
} |
{ | ||
"name" : "node-red-node-arduino", | ||
"version" : "0.2.4", | ||
"version" : "0.3.0", | ||
"description" : "A Node-RED node to talk to an Arduino running firmata", | ||
@@ -5,0 +5,0 @@ "dependencies" : { |
Sorry, the diff of this file is not supported yet
23036
0.23%249
2.47%