Many IoT projects still fail. Therefore it is very important to be able to create working proof of concepts very quickly while limiting costs to a minimum. Having a minimum viable product often shows if the use case works and if the business case behind it has a positive ROI (return on investment). In order to achieve this flexibility low-code development is one of the key solutions to realise IoT projects quickly. But with the achieved stability of current low-code solutions such as Node-RED it is a trend that these solutions also end up in production because they are efficient, stable and easy to maintain.
What is Node-RED?
Above you see an example of a Node-RED Modbus flow that collects electricity data such as voltage, current or power from a Modbus device. The measurement values are then pulled from the device running Node-RED by sending a query to the Modbus device requesting certain coil values. All values are sent to a cloud backend using the MQTT node called “power”. Sending data via MQTT is as easy as defining the MQTT block. Any of the function blocks can contain calculations, logic or any other function important for the system.
The Benefits of Using Node-RED for Industrial Low-Code IoT Development
How to Get Started with Node-RED?
It is very simple to get started with Node-RED. It is part of the standard image of Raspbian OS. So basically it is installed on any Raspberry Pi. In addition, it is not difficult to install it on other systems. Just follow the tutorial here.
If you want to develop Node-RED for industrial IoT applications and the intention is to deploy this to many thousand devices on the edge then this becomes slightly more difficult. Nevertheless, this is still fairly easy to manage if you understand a few basic ideas about Node-RED. If you are interested to learn more about the inner workings of the settings.js and the different flow files then we have a tutorial here that explains some of the often encountered problems.
Manage Large Fleets of Edge Devices Running Node-RED
Very quickly you will be able to solve many problems with Node-RED. If you are using this in a commercial industrial setting then the next question is how to deploy this in a secure and reliable way and operate it over the long lifecycle of the industrial IoT project. Here you cannot avoid to utilise some IoT device management.
As an example we have a short article about a company using Node-RED in production. In order to achieve this level of automation you need to automatically install and configure Node-RED and manage the flows. This also includes managing the credentials and settings files. We created an example for you that includes a continuous integration / continuous deployment via Github. This shows what is easily possible. The Github integration is of course something that can be done manually as well. Anyhow, just follow this Node-RED deployment tutorial and you will soon manage complete fleets with Node-RED running reliably at the edge. If you are looking for a way to manage Node-RED at the edge with docker containers we have you covered as well. Below you see a diagram how that solution works.
Node-RED gives you a unique way to implement industrial IoT projects with low-code in order to speed up your development process. This will allow quick prototyping and very effective data collection. But it does not have to stop there. Node-RED has become so mature and stable that it is possible to use it in production. Together with an IoT device management software such as qbee it is easy to deploy Node-RED consistently on large fleets of edge devices solving all your industrial IoT needs.