CONNECT packet must have at least 7 bytes. #1808
Unanswered
zzhanxianzhi
asked this question in
Q&A
Replies: 1 comment
-
For reference: #1809 (same issue). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
After connecting to the client, it frequently disconnects and prompts Error while processing CONNECT packet, CONNECT packet must have at least 7 bytes. My code
MqttServerOptionsBuilder mqttServerOptionsBuilder = new MqttServerOptionsBuilder();
mqttServerOptionsBuilder.WithDefaultEndpoint();
mqttServerOptionsBuilder.WithDefaultEndpointBoundIPAddress(IPAddress.Parse(MqttService.ip));
mqttServerOptionsBuilder.WithDefaultEndpointPort(MqttService.port);
//mqttServerOptionsBuilder.WithEncryptedEndpointPort(port);
mqttServerOptionsBuilder.WithPersistentSessions(MqttService.withPersistentSessions);
mqttServerOptionsBuilder.WithDefaultCommunicationTimeout(TimeSpan.FromMilliseconds(60000));
Beta Was this translation helpful? Give feedback.
All reactions