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

No way to get the reason codes from UNSUBSCRIBE and other RC issues

Open
#485 0 comments 0 reactions 1 assignee Claimed by @jpwsutton View on GitHub
bug
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

Please fill out the form below before submitting, thank you!

- [ ] Bug exists Release Version 1.2.0 ( Master Branch)
- [ ] Bug exists in Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)
- [x] Bug exists in MQTTv5 Version (mqttv5-new 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

There is no way to get the reason codes list from the UNSUBSCRIBE in the pahov5 client response object.

The reason code list for SUBSCRIBE is named getGrantedQoS() which is not a fully appropriate name as the reason codes contain things other than the QoS.

In MqttDisconnectResponse, the reason code is named ReturnCode and shows up as such in the toString().

I do not see the correct way to receive the non-error reason codes on the ACKs. It does not seem reasonable to throw an exception when 0x10 (No matching subscribers) is returned on PUBACK or PUBREC.

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.