Skip to content

CONNECT packet must have at least 7 bytes. #2236

@andycheng-jiuluomall

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

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