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

MessageListener behaves in an odd way

Open
#480 2 comments 0 reactions 0 assignees View on GitHub
question
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.