eclipse-paho / eclipse-paho/paho.mqtt.java

MqttClient waits after sending a qos=0 message

Open
#1,014 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

- [x] Bug exists Release Version 1.2.5 ( Master Branch)
- [x] 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.