MQTTnet icon indicating copy to clipboard operation
MQTTnet copied to clipboard

Subscribe QoS cannot be set

Open adriannowaq opened this issue 5 years ago • 2 comments

Hi, when I publish message with QoS 1 or 2, it works well, but I can't listen with qos 1 or 2 setting because I cant find the setting, it's always set to 0, is it possible to change qos while listening?

adriannowaq avatar Sep 15 '21 07:09 adriannowaq

I think you're looking for this method, which accepts the qos: https://github.com/chkr1011/MQTTnet/blob/master/Source/MQTTnet/Client/MqttClientExtensions.cs#L171

(or via the topic filter properties)

pver avatar Sep 15 '21 11:09 pver

Thank you so much, works @pver

adriannowaq avatar Sep 15 '21 11:09 adriannowaq