Pārlūkot izejas kodu

Fix MqttProtocolVersion 3.1 connection

release/3.x.x
Sébastien Warin pirms 6 gadiem
vecāks
revīzija
9b29f8c23a
1 mainītis faili ar 1 papildinājumiem un 5 dzēšanām
  1. +1
    -5
      Frameworks/MQTTnet.NetStandard/Serializer/MqttPacketSerializer.cs

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

@@ -205,11 +205,7 @@ namespace MQTTnet.Serializer
}
else
{
var buffer = new byte[6];
Array.Copy(protocolName, buffer, 4);
protocolName = stream.ReadBytes(2);
Array.Copy(protocolName, 0, buffer, 4, 2);

protocolName = protocolName.Concat(stream.ReadBytes(2)).ToArray();
if (protocolName.SequenceEqual(ProtocolVersionV310Name))
{
protocolVersion = MqttProtocolVersion.V310;


Notiek ielāde…
Atcelt
Saglabāt