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?

1

1 Answer 1

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.

1
  • 2
    Think ? Is this a answer or a comment?
    – MatsK
    Aug 15, 2022 at 5:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.