Open ElisaMin opened 2 years ago
It looks there is a bug in org.eclipse.paho.mqttv5.client.MqttClient where :
public IMqttToken subscribe(String[] topicFilters, int[] qos, IMqttMessageListener[] messageListeners) throws MqttException {
return this.subscribe(topicFilters, qos, messageListeners);
}
Should be something like:
public IMqttToken subscribe(String[] topicFilters, int[] qos, IMqttMessageListener[] messageListeners) throws MqttException {
IMqttToken tok = aClient.subscribe(topicFilters, qos, null, messageListeners);
tok.waitForCompletion(getTimeToWait());
return tok;
}
Any chance of seeing this bug fixed?