https://www.lairdconnect.com/iot-devices/iot-sensors
18
© Copyright 2019 Laird. All Rights Reserved
Americas: +1-800-492-2320
Europe: +44-1628-858-940
Hong Kong: +852 2923 0610
node-RED is a flow-based programming environment which is used to wire devices models, APIs, and online services
together. Flow-based programming is a w
ay of describing an application’s behavior as a network of
nodes
. Each node
receives data, does something with that data, and then passes the data onward. This network of nodes is set up using the
node-RED palette web interface.
node-RED uses
node.js
to host the flow-based programming palette and to create a user web interface. Reference
for more information on the node-RED tool.
Our sample node-red application has a MQTT client that communicates with MQTT broker installed on AWS EC2 instance,
and this guide will install node-red on your local PC. Install the
node.js
package manager (NPM) and
node.js
locally on your
PC by going to the
node.js
website:
. Both
node.js
and the NPM are installed in the same install (Figure
26). We recommend that you install the latest version.
Note:
This guide is based off working versions of Node-Red: Version 0.17.5 and Node.js: Version 8.9.1
Figure 26: node.js and node.js package manager installation
Note:
If there are errors encountered while running the latest version of the installer, use the
Recommended for Most Users
version of node.js.
Before running the install, you must save the JSON config and flow file in the same directory from which node-RED is run. In
Windows, this is typically in your USER file location on the C: drive (
e.g. C:\Users\User_Name\nodered-demo
). Placing the
files in this USER file location ensures that the correct privileges are assigned to these files; otherwise there may be issues
during the install of node-RED packages.
Download the JSON files off the website
https://connectivity.lairdtech.com/wireless-modules/lorawan-solutions/sentrius-rs1xx-
Содержание Sentrius RG1 Series
Страница 1: ...A Version 1 2...