Closed perphilipp closed 5 years ago
Hi, thank you for reporting that issue. Do you may have more information from HiveMQ? I am wondering what the "payload" may mean. MQTTv5 has some additional data in that packet in comparison to v3 but the term payload is strange.
But at least I can reproduce it with the public test broker from HiveMQ (without getting the error details). Best regards Christian
I found the issue and fixed it. I will release a new version soon. Until that please use V311 instead.
Hi Christian, thank you very much for your fast response and fix! I'm looking forward to the next release. Best regards Philipp
When I publish a message after connecting with
MqttProtocolVersion.V500
and setting the QoS toMqttQualityOfServiceLevel.ExactlyOnce
, my HiveMQ Server disconnects the client immediately with the error messageIf I switch the protocol to
MqttProtocolVersion.V311
, I can publish messages withMqttQualityOfServiceLevel.ExactlyOnce
without the error.My guess is that there is something wrong with the conversion of the PUBREL message to a MQTTv5 message-type.
Here is my code for connecting:
Here is my code for publishing:
As I said, with
.WithProtocolVersion(MqttProtocolVersion.V311)
everything is fine. Since the problem seems to occour in the PUBREL, the other two QoS's are also fine.I am using the Client from the NuGet 3.0.0 in a Xamarin Forms Project. The broker is a locally installed HiveMQ Community Edition version 2019.1.
Any help is greatly appreciated :)