Prerequisites: MQTT broker (e.g. Mosquitto on
localhost:1883). Outbound HTTPS to your API. See MQTT Publish and MQTT Event.
Build an HTTP-to-MQTT bridge from template #1: fetch data from a REST API and publish it to an MQTT topic for downstream devices or workflows.
What this template does
- Fetch Data — HTTP GET to your API.
- Publish to MQTT — topic
nodlyn/data.
Step 1 — Load the template
- Studio → Templates → search
HTTP to MQTT Bridge. - Load template #1.
Step 2 — HTTP source
- Set API URL, method, headers, and auth in Fetch Data.
- Add a Cron Schedule or Webhook trigger to run on a schedule or on demand.
Step 3 — MQTT broker
- Configure broker host, port, topic, and optional credentials.
- Subscribe with
mosquitto_sub -t nodlyn/datato verify messages.
Step 4 — Downstream
Chain with MQTT Sensor → InfluxDB Logger or edge consumers on the same broker.
Related tutorials
- MQTT Device Event → Slack — subscribe and notify.
- External System Triggers Agent — MQTT ingress on runtime.