Skip to content
The Things Stack documentation home
Getting Started Concepts Cloud Enterprise Integrations API Hardware
Getting Started Concepts
Cloud Enterprise
Integrations API Hardware
Get The Things Stack

    Recent searches

      Popular pages

      • Getting Started
      • Adding Gateways
      • Adding Devices
      • Payload Formatters
      • Webhooks
      • Authentication

      No results for “”.

      • Check the spelling, or try fewer or more general words.
      • Ask the community on The Things Network Forum
      • Contact support
      ↑↓ to navigate ↵ to open Esc to close

      Integrations

      • Overview
      • Adding Applications
      • Data Formats
      • Payload Formatters
      • Webhooks
      • Storage Integration
      • Integrate with popular IoT platforms
      • Other integrations
        • MQTT Server
        • Pub/Sub
        • Node-RED
          • Setup
          • Receive Events and Messages
          • Send Messages
        • IFTTT
      • Application Packages
      • Examples

      Node-RED

      Updated 20 January 2025 Edit on GitHub
      Copy page
      • View as MarkdownThis page as plain text
      • Open in ChatGPTAsk questions about this page
      • Open in ClaudeAsk questions about this page

      Node-RED is a free, JavaScript-based development tool for visual programming, developed to ease the process of wiring together hardware devices, APIs and online services.

      The MQTT server that is exposed by The Things Stack can be connected to Node-RED.

      This integration allows setting up a Node-RED flow that listens to events and uplink messages, and it is also possible to schedule downlink messages.

      Demo setup

      Setup

      This section describes how to setup a Node-RED server and prepare to connect it to The Things Stack. Requirements Install Node-RED Note: Node-RED v1.0.6 is current at time of writing and is used in this guide. Setup Run Node-RED in your terminal and navigate to the server address of your Node-RED instance in your web browser. For example, a default address of a Node-RED instance deployed on localhost is 127.0.0.1:1880. You should see something like:
      Read

      Receive Events and Messages

      This section follows the process of setting up a flow which subscribes and listens to the events and messages that are being published by the MQTT server. Configure MQTT In Node Place the mqtt in node on the dashboard. Double-click on the node to configure its properties. In the Server dropdown menu, select Add new mqtt-broker and click on the button besides to edit it. In the Connection tab, under Server, provide the address of the MQTT server (without port) from The Things Stack Console (the address shown on the image at the bottom of the Setup section).
      Read

      Send Messages

      This section explains the process of setting up a flow which publishes messages to a certain topic that the MQTT server is subscribed to. Doing this schedules downlink messages to be sent to your end device. This section follows the example for publishing downlink traffic in MQTT Server guide. Configure MQTT Out Node Place the mqtt out node on the dashboard. Configure the Server options with the same settings as in the Receive Events and Messages section.
      Read
      ← Message Types Setup →

      Sections

      Getting Started

      Concepts

      Cloud

      Enterprise

      Integrations

      API

      Hardware

      Sitemap

      View our Sitemap

      Contributing

      GitHub

      About Us

      The Things Industries

      Privacy Policy

      Cookie settings

      Cookie Settings

      We use cookies to enhance your experience, analyze site traffic and deliver personalized content. Read our Privacy Policy.

      Cookie categories