mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-15 00:15:15 +08:00
fixed tests
This commit is contained in:
@@ -397,7 +397,7 @@ namespace MQTTnet.Serializer
|
||||
throw new MqttProtocolViolationException("Protocol version not supported.");
|
||||
}
|
||||
|
||||
stream.Write((byte)packet.ConnectReturnCode);
|
||||
stream.WriteByte((byte)packet.ConnectReturnCode);
|
||||
|
||||
return MqttPacketWriter.BuildFixedHeader(MqttControlPacketType.ConnAck);
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace MQTTnet.Serializer
|
||||
{
|
||||
if (value == null) throw new ArgumentNullException(nameof(value));
|
||||
|
||||
stream.Write(value.Value);
|
||||
stream.WriteByte(value.Value);
|
||||
}
|
||||
|
||||
public static void WriteWithLengthPrefix(this Stream stream, string value)
|
||||
|
||||
Reference in New Issue
Block a user