How to quickly build an IoT connector with Node-RED
By default, the Node-RED editor is not secured - anyone who can access its IP address can access the editor and deploy
changes.
This is only suitable if you are running on a trusted network.
The Azure IoT Hub nodes are not developed by
Microsoft. The package is not maintained and contains several vulnerabilities. Use at your own risk.
Clone the repo and install the NPM packages:
$ git clone https://github.com/cdlans/node-red-iot-connector.git
$ cd node-red-iot-connector
$ npm install
Configure the Azure IoT Central device ID, hostname and key in the .env
file. Check the tutorial Add a real
device to your Azure IoT Central application
for instructions on generating a connection string containing these settings.
If you are not connecting to Azure IoT Central you can skip this step, but you might want to remove or disconnect the
Azure IoT Hub nodes to avoid error messages.
Start the application:
$ npm start
Point your browser to http://localhost:1880 to open the Node-RED editor. Replace localhost
with the address of the
machine running Node-RED, if you are not running Node-RED on your local machine.
Point your browser to http://localhost:1880/ui to open the Node-RED dashboard.
The PowerPoint slides explaining How to Build an IoT Connector in 10 Minutes.