mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-21 12:16:02 +08:00
Set MaximumQoS properly.
This commit is contained in:
@@ -72,11 +72,11 @@ namespace MQTTnet.Formatter.V5
|
||||
|
||||
if (value == MqttQualityOfServiceLevel.AtLeastOnce)
|
||||
{
|
||||
Write(MqttPropertyId.MaximumQoS, true);
|
||||
Write(MqttPropertyId.MaximumQoS, 0x1);
|
||||
}
|
||||
else
|
||||
{
|
||||
Write(MqttPropertyId.MaximumQoS, false);
|
||||
Write(MqttPropertyId.MaximumQoS, 0x0);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user