Integrations

Adding Integrations

Integrations allow you to process and act on data by triggering events. Events can be pretty much anything, and can easily be set up using Webhooks or MQTT.

Integrations are managed within applications. Applications can be added to The Things Stack by following instructions for Adding Applications in the Console or Adding Applications Using the Command-line interface.

Application Packages

Application packages specify state machines running both on the end-device and the Application Server as well as signaling messages exchanged between the end-device’s application layer and the Application Server.

Data Formats

The streaming data integrations provide multiple formats for the delivery of application uplink messages and downlink queue operations. This section will delve into the common formats used by them.

HTTP Webhooks

The webhooks feature allows the Application Server to send application related messages to specific HTTP(S) endpoints.

MQTT Server

The Things Stack exposes an MQTT server to work with streaming events. This section explains how to connect an MQTT client and subscribe to uplinks or publish downlinks.

The Things Stack supports the MQTT Standard Version 3.1.1.

Node-RED

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.

Payload Formatters

Payload formatters allow you to process data going to and from end devices. This is useful for converting binary payloads to human readable fields, or for doing any other kind of data conversion on uplinks and downlinks.

This section explains how to set up Application and device specific payload formatters.

Peering

Exchange traffic with other LoRaWAN networks via peering to share coverage and improve the overall network performance.

Pub/Sub

The Pub/Sub integration allows the Application Server to publish and subscribe to topics, using The Things Stack built-in MQTT client or NATS client.