eclipse-paho / eclipse-paho/paho.mqtt.java
how to get the messageId after the client.publish some msg.
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 919
- PR merge metrics
- No merged PRs in 30d
Description
how to get the messageId after the MqttClient.publish some msg.
I don't want to change the MqttClient to MqttAsyncClient with waitForCompletion()
it'll take some time in the thread?
I just publish msg int a thread,and in other thread recieve process the delivered event.
so I want to match the current msg by the messageId
Please fill out the form below before submitting, thank you!
- [x] Bug exists Release Version 1.2.0 ( Master Branch)
- [ 1] Bug exists in MQTTv3 Client on Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)
- [ ] Bug exists in MQTTv5 Client on Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)
If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new
Contributor guide
Assessment
This issue has not been assessed yet.