Skip to content
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

MqttClient waits after sending a qos=0 message #1014

Open
2 of 3 tasks
InvincibleSuper opened this issue Sep 13, 2023 · 0 comments
Open
2 of 3 tasks

MqttClient waits after sending a qos=0 message #1014

InvincibleSuper opened this issue Sep 13, 2023 · 0 comments

Comments

@InvincibleSuper
Copy link

InvincibleSuper commented Sep 13, 2023

  • Bug exists Release Version 1.2.5 ( Master Branch)
  • Bug exists in MQTTv3 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)
  • Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch)

The method Token.waitForCompletion() will only handle the type of message that has a response, and will not work on the type publish message because it has no response

I looked through the code again and found that the qos=0 message was to be sent using MqttTopic. Whether this is ambiguous to the consumer, it is recommended to adapt MqttClient.publish() to the qos=0 message

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant