The Arduino IoT Cloud and a Node-RED Hello World example
In this section, we will build on our project by adding some extra functionality to our system via Node-RED. This will help you to understand how you can use Node-RED to integrate non-compatible devices with the Arduino IoT Cloud.
Node-RED will monitor the LED status based on a value that is either true or false. On the basis of this status, Node-RED will send the command to another Thing variable called LEDStatus
, which will be linked to the Status widget, which shows the LED as being either on or off. Using this example, you will learn how to read data from a Thing property/variable and how to write data to a Thing property/variable.
Node-RED has a module that was officially developed by Arduino for connectivity with the Arduino IoT Cloud. It provides five nodes to carry out different types of operations. For further details, visit https://flows.nodered.org/node/@arduino/node-red-contrib-arduino-iot-cloud.