eclipse-paho / eclipse-paho/paho.mqtt.python
The reason code and MQTTv5 properties for PUBACK/PUBREC/PUBREL/PUBCOMP are not available to the client code
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 742
- Avg merge
- 12d 48m
- Merged PRs (30d)
- 1
Description
For [PUBACK, PUBCOMP](https://github.com/eclipse/paho.mqtt.python/blob/v1.5.1/src/paho/mqtt/client.py#L3401), [PUBREC](https://github.com/eclipse/paho.mqtt.python/blob/v1.5.1/src/paho/mqtt/client.py#L3297) the reason code and MQTTv5 properties are parsed, but not used in any way. For [PUBREL](https://github.com/eclipse/paho.mqtt.python/blob/v1.5.1/src/paho/mqtt/client.py#L3231) the reason code and MQTTv5 properties are not even parsed.
It would be good to have callbacks for these types of packets so that the client code can analyze the reason code and MQTTv5 properties. PUBACK and PUBCOMP already have `on_publish` callback, but it does not return the necessary data.
Contributor guide
Assessment
This issue has not been assessed yet.