MQTT Stream API
MQTT access setup, topics, and client examples for real-time Haltian IoT events
Use the Stream API to receive events in real time through MQTT or Kafka. Use it for live dashboards, alerting systems, and integrations that react to device activity without continuously polling the Service API.
Both transports use an integration and a linked API key, managed through the Service API. Broker authentication, permissions, topics, and payloads differ between transports. Follow the setup instructions for your chosen transport, store its API key token securely, and renew the token before it expires.
| Transport | Choose it when you need | Documentation |
|---|---|---|
| MQTT | Topic-based subscriptions, including device and measurement topic patterns | MQTT |
| Kafka | Kafka consumers, consumer groups, and retained-event processing | Kafka |
MQTT documentation includes topics, client examples, and cloud binary passthrough. Kafka documentation includes access setup, connection settings, payloads, retention, and a consumer example. Do not assume that filtering or delivery behavior is identical across transports.
MQTT access setup, topics, and client examples for real-time Haltian IoT events
Connect to Haltian IoT Kafka in production and consume real-time measurements and device events