-
Notifications
You must be signed in to change notification settings - Fork 1
Additional difference in CONN packet between 3.1.1 and 5.0 #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…broker-26 # Conflicts: # src/test/groovy/com/ss/mqtt/broker/test/integration/ConnectSubscribePublishTest.groovy
| if (mqttVersion.ordinal() < MqttVersion.MQTT_5.ordinal()) { | ||
|
|
||
| // for mqtt < 5 we cannot have password without user | ||
| if (!hasUserName && hasPassword) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please combine conditions
| received.get().type == Mqtt3MessageType.PUBLISH | ||
| cleanup: | ||
| subscriber.disconnect() | ||
| publisher.disconnect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add join
| received.get().qos == MqttQos.AT_LEAST_ONCE | ||
| received.get().type == Mqtt3MessageType.PUBLISH | ||
| cleanup: | ||
| subscriber.disconnect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add join
| received.get().type == Mqtt5MessageType.PUBLISH | ||
| cleanup: | ||
| subscriber.disconnect() | ||
| publisher.disconnect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add join
| received.get().qos == MqttQos.EXACTLY_ONCE | ||
| received.get().type == Mqtt3MessageType.PUBLISH | ||
| cleanup: | ||
| subscriber.disconnect() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add join
An additional difference in CONN packet between 3.1.1 and 5.0