You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My mqtt Server has some reatined message with qos 2.
The server return retained message with qos 2 after client subscribe with qos 0.
Which component is your bug related to?
Server (MQTTnet 4.1.2.350)
To Reproduce
Publish some msg with qos is 2 and retained.
Subscribe with qos is 0
Expected behavior
Receive retained msg with the qos as the same with subscription.
Code example
I use 3.1.2 is fine, but it get fault when i upgrade to 4.x.
I found 3.1.2 code bellow, it will overwrite before publishing retained msg.
//MQTTnet 3.1.2asyncTask<MqttPublishPacket>CreatePublishPacket(MqttQueuedApplicationMessagequeuedApplicationMessage){varpublishPacket=_channelAdapter.PacketFormatterAdapter.DataConverter.CreatePublishPacket(queuedApplicationMessage.ApplicationMessage);//Use the qos of subscriptionpublishPacket.QualityOfServiceLevel=queuedApplicationMessage.SubscriptionQualityOfServiceLevel;//...(ignored)returnpublishPacket;
Thank you.
The text was updated successfully, but these errors were encountered:
Describe the bug
My mqtt Server has some reatined message with qos 2.
The server return retained message with qos 2 after client subscribe with qos 0.
Which component is your bug related to?
To Reproduce
Expected behavior
Receive retained msg with the qos as the same with subscription.
Code example
I use 3.1.2 is fine, but it get fault when i upgrade to 4.x.
I found 3.1.2 code bellow, it will overwrite before publishing retained msg.
Thank you.
The text was updated successfully, but these errors were encountered: