Skip to content

CONNECT packet must have at least 7 bytes. #2236

Description

@andycheng-jiuluomall

Describe your question

testapi.suzhoujiding.com host => localhost

Image Image

PacketFormatterAdapter.TryDecode

if (formatter.ProtocolVersion == MqttProtocolVersion.Unknown)
{
formatter.DetectProtocolVersion(receivedMqttPacket);
}

public void DetectProtocolVersion(ReceivedMqttPacket receivedMqttPacket)
{
var protocolVersion = ParseProtocolVersion(receivedMqttPacket);
UseProtocolVersion(protocolVersion);
}

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionIt is a question regarding the project

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions