MQTT Debugging
Debug MQTT connections by connecting to an MQTT broker and inspecting publish/subscribe message flow.
Creating an MQTT session
- Navigate to Realtime in the dashboard
- Click New Session
- Select MQTT as the protocol
- Enter the broker URL (e.g.,
mqtt://broker.hivemq.com:1883orwss://broker.hivemq.com:8884/mqtt) - Optionally configure:
- Client ID — unique client identifier
- Username / Password — broker authentication
- Clean session — whether to start with a clean session
- Keep alive — keep-alive interval in seconds
- Click Connect
Subscribing to topics
Once connected:
- Enter a topic filter (e.g.,
sensors/#,home/+/temperature) - Select the QoS level (0, 1, or 2)
- Click Subscribe
Messages matching your subscriptions appear in the message stream.
Inspecting messages
The dashboard displays MQTT messages:
- Topic — the MQTT topic the message was published on
- Payload — message content (JSON is syntax-highlighted)
- QoS — quality of service level
- Retain — whether the message is retained
- Direction — published (outgoing) or received (incoming)
- Timestamp — when the message was sent or received
Publishing messages
Send test messages to the broker:
- Enter the topic (e.g.,
sensors/temperature) - Enter the payload
- Select QoS level and retain flag
- Click Publish
Use cases
- IoT development — debug device-to-cloud messaging
- Broker testing — verify topic routing and QoS behavior
- Integration debugging — inspect messages between services
- Topic design — validate topic hierarchy and wildcard subscriptions