I have setup a Moquette MQTT broker and connected it with eclipse Paho client (I will call this paho1
). Subscribing to in/#
topic.
I created another Paho client (I will call this paho2
), with a different client id of course, and published it to the broker with in/device
topic.
At first, the packet was delivered successfully. However, when I disconnect paho2
and reconnect to the broker and send the same packet, it is not delivered to paho1
.
I wonder why this is happening. My settings for the Paho client is qos = 0
(I tried 1 and 2 as well).
MqttConnectOptions connOpts = new MqttConnectOptions();
connOpts.setCleanSession(false);
I was looking at the log of broker and it comes as follows. When successful, my protocol version is printed to the log.