In this example, you will see how to publish Data Streams from your Raspberry Pi Node-Red application.
If you have not done so, start at 1. Create a Device Client, if you have, continue to 2. Create a Data Stream
From the side navigation tab of the device page, click on Create Client. Set the name as Node-RED (or any publishing client). Save the Client ID and the Password in a secured location.
From the side navigation tab of the device page, click on Create Data Stream. Set the name, description, and units to the type of data that you will be receiving.
From the side navigation tab of the device page, activate the Node-RED Connection, and connect to Node-RED.
Once you are in the Node-Red page, the default credentials are:
To change Node-Red credentials, click on the Credentials button on the device page.
From the nodes in the left navigation bar, drag and drop the datastream out node.
Double-click on the datastream out node and click on the edit button for the server
Here we will add the client that will be used to publish data into our table.
Your client should now be displayed as your server.
Next, we will click the refresh button in the Topic row and select our Data Stream
Next, you connect any sensor that is receiving data into the data streams out node and click Deploy.
For the purpose of simplicity, we will use an inject node and trigger it to publish a data stream when it is clicked.
Insert inject node and connect it the data streams out node
Double-click on the inject node and configure it to publish a value of 10 in 5 seconds intervals.
Click Deploy and click your inject node. You will now be able to see data streams published in your IoTFlows Data Streams table.