eclipse / paho.mqtt.java

Eclipse Paho Java MQTT client library. Paho is an Eclipse IoT project.
https://eclipse.org/paho
Other
2.08k stars 879 forks source link

[Question] Usage of `MqttProperties.setResponseInfo` method #1008

Open dilanSachi opened 1 year ago

dilanSachi commented 1 year ago

Please fill out the form below before submitting, thank you!

When considering about the Request/Response flow in MQTT5, there's a concept of Response Information [1] which can be used as the root of a topic tree for a particular Client. However, as I understood this is set from the MQTT broker rather than from the clients. If my understanding is correct, what is the use of the setResponseInfo method? If I am mistaken, can you guide me on the correct way of setting the reponse information using clients?

Thanks in advance.

[1] https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Response_Information