Skip to content

Conversation

@JavaSaBr
Copy link
Owner

@JavaSaBr JavaSaBr commented Dec 8, 2019

An additional difference in CONN packet between 3.1.1 and 5.0

@JavaSaBr JavaSaBr added the enhancement New feature or request label Dec 8, 2019
@JavaSaBr JavaSaBr requested a review from crazyrokr December 8, 2019 18:13
if (mqttVersion.ordinal() < MqttVersion.MQTT_5.ordinal()) {

// for mqtt < 5 we cannot have password without user
if (!hasUserName && hasPassword) {
Copy link
Collaborator

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()
Copy link
Collaborator

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()
Copy link
Collaborator

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()
Copy link
Collaborator

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()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add join

@crazyrokr crazyrokr merged commit bc1fa49 into develop Dec 14, 2019
@crazyrokr crazyrokr deleted the feature-broker-26 branch December 14, 2019 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants