Skip to content

Commit fee4af0

Browse files
author
chongyuan
committed
fix encoding for Maximum QoS Property
Signed-off-by: chongyuan <yinchongyuan@xmeter.net>
1 parent a0a131c commit fee4af0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • org.eclipse.paho.mqttv5.common/src/main/java/org/eclipse/paho/mqttv5/common/packet

org.eclipse.paho.mqttv5.common/src/main/java/org/eclipse/paho/mqttv5/common/packet/MqttProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ public byte[] encodeProperties() throws MqttException {
336336
// Maximum QoS
337337
if (maximumQoS != null && validProperties.contains(MAXIMUM_QOS_IDENTIFIER)) {
338338
outputStream.write(MAXIMUM_QOS_IDENTIFIER);
339-
outputStream.writeShort(maximumQoS);
339+
outputStream.writeByte(maximumQoS);
340340
}
341341

342342
// Retain Available

0 commit comments

Comments
 (0)