Configure The Things Stack MQTT integration for uplink and downlink messages

domain: the-things-stack · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. In the TTS console, navigate to Applications > your app > Integrations > MQTT and note the public MQTT endpoint hostname and port (1883 for plain TCP, 8883 for TLS).
  2. Generate API key credentials with the appropriate rights (Read application traffic, Write downlink) from the API Keys section; use the application ID as the MQTT username and the API key as the password.
  3. Subscribe to uplink messages using the topic v3/APP_ID@TENANT_ID/devices/+/up to receive all device uplinks as JSON, or narrow to a specific device by replacing + with DEVICE_ID.
  4. To schedule a downlink, publish a JSON payload to v3/APP_ID@TENANT_ID/devices/DEVICE_ID/down/push; include the frm_payload as base64-encoded bytes, f_port, and optionally confirmed flag.
  5. Parse the uplink JSON structure: decoded_payload contains the formatter output, uplink_message.rx_metadata includes gateway RSSI and SNR, and received_at is the server-side timestamp.
  6. Use TLS on port 8883 and verify the server certificate against the TTS CA to prevent MQTT credential interception on untrusted networks.

Known gotchas

Related routes

Configure MQTT QoS levels and retained messages for IoT devices
mqtt.org · 5 steps · unrated
Receive LoRaWAN uplink messages from The Things Stack (TTN) via its MQTT server
thethingsindustries.com · 6 steps · unrated
Configure an HTTP webhook integration in The Things Stack to receive LoRaWAN uplink messages
iot · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans