Set MaximumQoS properly.

This commit is contained in:
Christian
2022-06-24 18:52:50 +02:00
parent 29ec6edbf4
commit 725cfb643f
2 changed files with 9 additions and 3 deletions
@@ -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);
}
}