Pārlūkot izejas kodu

fixed tests

release/3.x.x
JanEggers pirms 6 gadiem
vecāks
revīzija
8c37cf16c0
2 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +1
    -1
      Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketSerializer.cs
  2. +1
    -1
      Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketWriter.cs

+ 1
- 1
Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketSerializer.cs Parādīt failu

@@ -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);
}


+ 1
- 1
Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketWriter.cs Parādīt failu

@@ -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)


Notiek ielāde…
Atcelt
Saglabāt