New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
messageId attribute of MqttMessage always returns zero #87
Comments
I found what the issue is.
should be:
|
@gholadr Where are you seeing |
@jpwsutton, sorry, its this class |
Let me submit a PR for this? We need this to be part of 1.2.0 as we rely on message Id to sort messages. |
We're past the deadline for PRs for 1.2.0 as the IP log has already been submitted, I can look at getting it added myself though. |
That would be awesome if you could. On Wed, Jun 1, 2016, 5:33 PM James Sutton notifications@github.com wrote:
|
Fix is now in the latest 1.0.3-SNAPSHOT and will be in 1.1.0 once released. |
Thank you. On Thu, Jun 2, 2016, 3:49 PM James Sutton notifications@github.com wrote:
|
Hi, I am using version 1.1.1, and the id is still always returning 0. Has this issue been fixed? |
Please fill out the form below before submitting, thank you!
Android API Version Bug Seen on: min sdk 17, target sdk 23
Description of Bug:
E.g. Steps to re-create, how often does this happen etc..
When overriding the messageArrived method from the MqttCallback interface, we've noticed that the messageId attribute of the MqttMessage object passed as a parameter is not set and always returns
0
. Since we use QoS 2, and according to the MQTT specs, it feels like the messageId should be set to an Integer value. We've verified that the broker does indeed return an integer value. We are not sure but feels like the issue might be when CommsCallback invokesdeliverMessage
The text was updated successfully, but these errors were encountered: