eclipse-paho / eclipse-paho/paho.mqtt.java

MQTTv5 client cannot connect to broker that only supports max. MQTTv3.1.1

Open
#1,060 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

- [x ] Bug exists Release Version 1.2.5 ( Master Branch) MQTTv5
- [ ] Bug exists in MQTTv5 Client on Snapshot Version 1.2.6-SNAPSHOT (Develop Branch): not tested

**Test with (very old) mosquitto version 1.5.5 (MQTTv5 client)**
Debug-Messages from mosquitto:
New connection from ....
Invalid protocol version 5 in CONNECT from ....
Sending CONNACK to ...
Socket error on client , disconnecting.

**Test with (very old) mosquitto version 1.5.5 (MQTTv3 client)**
no error
Debug-Messages from mosquitto:
New connection from...
New client connected from ...

There is no way to set the MQTT version as in the MQTTv3 client (setMqttVersion), because the method is missing. Is no automatic fallback to V3.1.1 implemented?

Contributor guide

Open the contributing guide

Research direction

Reproduce the connection against mosquitto 1.5.5 using the MQTTv5 client and compare it with the MQTTv3 client's setMqttVersion behavior. Trace the client connection and protocol-version handling; done means the client can connect to a broker supporting only MQTT 3.1.1, either through version selection or the requested fallback behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.