1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

Finally upgrade serial port to serialport2

To address #139
This commit is contained in:
Dave Conway-Jones 2015-12-10 12:49:12 +00:00
parent 29cbd46b85
commit d1e5025566
2 changed files with 21 additions and 8 deletions

View File

@ -1,10 +1,15 @@
node-red-node-serialport
========================
<a href="http://nodered.org" target="_new">Node-RED</a> nodes to talk to an hardware Serial port.
<a href="http://nodered.org" target="_new">Node-RED</a> nodes to talk to a
hardware Serial port.
**Note** : This is the same node as was in the core of Node-RED.
As of v0.10.8 it will be installed from here instead.
**Note** : The version 0.1.x of this package requires underlying serialport
v2.0.x
Earlier versions of node.js, as found on default Debian install on a Raspberry Pi, require an
updated version of npm. See below. Or you can install the older version of
this node - node-red-node-serialport@0.0.5
Install
-------
@ -12,7 +17,17 @@ Install
Run the following command in the root directory of your Node-RED install, usually
this is ~/.node-red .
sudo npm install -g --unsafe-perm node-red-node-serialport
npm install node-red-node-serialport
For versions on node.js prior to 4.x (ie v0.10.x and v0.12.x) please install using
sudo npm i -g npm@2.x
npm install node-red-node-serialport
You may also have to install or upgrade GCC to be version 4.8 or better.
Alternatively you can simply install the older version of this node.
npm install node-red-node-serialport@0.0.5
During install there may be multiple messages about optional compilation.
These may look like failures... as they report as failure to compile errors -

View File

@ -1,12 +1,10 @@
{
"name" : "node-red-node-serialport",
"version" : "0.0.5",
"version" : "0.1.0",
"description" : "Node-RED nodes to talk to an serial port",
"dependencies" : {
"serialport" : "1.7.*"
"serialport" : "2.0.*"
},
"engineStrict" : true,
"engines" : { "node" : "<=0.12" },
"repository" : {
"type":"git",
"url":"https://github.com/node-red/node-red-nodes/tree/master/io/serialport"