IoTFlows
LOGIN TO CONSOLE
Search…
Welcome to IoTFlows Docs
IoTFlows
Console
REST API
Device Management & Secure Remote Access
1. Connect a device to the cloud or create a virtual device
2. SSH to your device over the internet
3. Transfer files to your device over the internet
4. Remotely access Node-RED on your device
5. Create public links for local web-apps
Real-Time Data Streams, Alerts, and Actions
Create a Device API Key
Publish and subscribe to real-time messages with Node-RED
Creating an Alert Channel
Publish an Alert with Node-RED
Define and execute an Action in Node-RED
Python real-time SDK
Javascript real-time SDK
Cloud Node-RED Servers
Create a secure Cloud Node-RED Server in five minutes
Subscribe to data streams with a Cloud Node-RED Server
Integrate data streams to Node-RED dashboard
Integrate data streams to Slack
IOTFLOWS OVERVIEW
IoTFlows Roles and Permissions
Adding Team Members
Example Projects
Raspberry Pi as Gateway
Getting Started with Node-Red Dashboard
Publishing Data Streams from Python
Ultrasonic Sensor on Raspberry Pi Node-Red
General
Downloading IoTFlows Node-Red Nodes
Publishing Alert from Node-Red Manual
Publishing Data Stream from Node-Red Manual
Powered By
GitBook
Publishing Data Stream from Node-Red Manual
Configure MQTT in Node-RED:
From the nodes in the left navigation bar, drag and drop the output
mqtt
node.
Double click on mqtt node, click on the pencil/edit button and set these parameters to configure the connection:
Connection Tab Parameters:
Parameter
Value
Server
mqtts.connect.iotflows.com
Port
443
Enable secure (SSL/TLS) connection
Checked
Client ID
Your-Device-API-Key-Username
Keep alive time (s)
60
Use clean session
Checked
Use legacy MQTT 3.1 support
Checked
Security Tab Parameters:
Parameter
Value
Username
Your-Device-API-Key-Username
Password
Your-Device-API-Key-Password
Node-Red Security Parameter
Node-Red Security Parameters from IoTFlows
After the configuration is done, press the
ADD
Once it has been added, click
DONE.
Publish a Data Stream from Node-RED:
Drag and drop an
inject
node.
Drag and drop a
function
node.
Connect the
inject
to
function
to
mqtt
node, respectively.
Double-tap the
function
node and write this code:
1
msg
.
topic
=
"YOUR-DATA-STREAM-MQTT-TOPIC"
;
2
msg
.
payload
=
3
{
4
"data"
:
"Data from sensor"
,
5
"data_stream_id"
:
"YOUR-DEVICE-DATA-STREAM-ID"
,
6
"client_id"
:
"YOUR-DEVICE-CLIENT-ID"
7
}
8
return
msg
;
Copied!
From the top right corner of Node-RED, tap Deploy.
Tap the button of the inject node and you should receive a data stream.
​
General - Previous
Publishing Alert from Node-Red Manual
Last modified
9mo ago
Copy link