2

One question I can't seem to find any docs about. I have made a PHP API that uses the Dynamic Security Plugin.

Is there any way I can map the pub with the response in the sub topic? As of now it returns in the response topic something like this:

"{"responses":[{"command":"createRole","error":"Role already exists"}]}"

But if I have multiple requests, it would be nice to have a way to map them together. For instance sending a ID on the publish that is returned in the corresponding response.

Any ideas?

Rohit Gupta
  • 285
  • 1
  • 2
  • 12
Morten
  • 21
  • 1
  • 1
    Hopefully, someone will answer it. I would suggest, due to the very specific nature of the question, to also buzz http://www.eclipse.org/forums/eclipse.mosquitto – kalyanswaroop Aug 11 '22 at 17:11

1 Answers1

0

Using the Request-Response Pattern introduced in MQTT 5, you can provide response topic on each publish message. So that you can map the corresponding message topic to their response topics.