eclipse-paho / eclipse-paho/paho.mqtt.java
MessageListener behaves in an odd way
- Dominant language
- Java
- Stars
- 2.3k
- Forks
- 919
- PR merge metrics
- No merged PRs in 30d
Description
bug exists in release for Maven
org.eclipse.paho
org.eclipse.paho.client.mqttv3
1.2.0
MqttClient client = new MqttClient(broker, clientId, persistence);
client.setCallback(new HHACallBack());
MqttConnectOptions options = new MqttConnectOptions();
options.setMqttVersion(MqttConnectOptions.MQTT_VERSION_3_1_1);
client.connect(options);
client.subscribe("#", new TopicMessageListener());
client.subscribe("$SYS/#", new SystemTopicMessageListener());
The class TopicMessageListener subscribed to "#" receives as well "$SYS/#" so it seems those aren't properly filtered.
Contributor guide
Assessment
This issue has not been assessed yet.