Hunt
Hunt

Reputation: 8425

how to get the acknowledgement of message received

i am using MQTT library in android with Apache Active MQ. i am able to subscribe and publish messages but i don;t know how can i get the message id and the acknowledgement that the subscribers has received the message.

in publishArrived i am getting following information

topicName 
payload,
qos,
retained

but inside payload i am just getting string message i am sending , how can i extract the following information. i think using these fields i can get the acknowledgement.

enter image description here

Upvotes: 0

Views: 1258

Answers (1)

Tim Bish
Tim Bish

Reputation: 18356

There is no built in acknowledge to a publisher that a consumer has received a message, this is something that you need to implement yourself. You could have your consumer send a message to a response topic that the send listens on if you really need to know.

Upvotes: 3

Related Questions