Implement an MQTT 5 request/response pattern using the Response Topic and Correlation Data properties

domain: docs.oasis-open.org · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Requester subscribes to a private response topic before sending a request
  2. Requester publishes the request with the Response Topic property set to that topic and Correlation Data set to a unique opaque value
  3. Responder reads the Response Topic and Correlation Data properties from the incoming PUBLISH
  4. Responder publishes its reply to the given Response Topic, copying the Correlation Data unchanged
  5. Requester matches the incoming reply to its original request via Correlation Data
  6. Handle timeouts for requests that never receive a matching reply

Known gotchas

Related routes

Use MQTT 5 message expiry interval and response topics for device command-response patterns
mqtt5 · 6 steps · unrated
Implement MQTT 5.0 enhanced authentication with the AUTH packet for challenge/response (e.g. SCRAM-style) login and re-authentication
iot · 5 steps · unrated
Implement key MQTT 5 features not available in MQTT 3.1.1: user properties, reason codes, and shared subscriptions
mqtt.org · 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