Persistant Session & Queuing Message, Session Expiry

Hi Team,

I trying to acheive the persistant session & Queuing message in HiveMQ. But it not working properly.
I tried the below commands, but it doesn’t work.

For Publishing a Message used Shell command prompt:
mqtt> con -i myClientTest --no-cleanStart -se 1000
myClientTest@localhost> pub -t home -m Hello
myClientTest@localhost> pub -t home -m Hello -q 1 -r
myClientTest@localhost> pub -t home -m Hello1 -q 1 -r
myClientTest@localhost> pub -t home -m Hello12 -q 1 -r
myClientTest@localhost> pub -t home -m Hello123 -q 1 -r
myClientTest@localhost> pub -t home -m Hello -q 1 -r
myClientTest@localhost> pub -t home -m Hello1 -q 1 -r
myClientTest@localhost> pub -t home -m Hello2 -q 1 -r

For Subscribing a Topic:
./mqtt-cli sub -t home

Can you please provide me another solution to work with.

And Also I have an issue in Session Expiry.
Can you give me some tips to achieve this.

Thanks,
Hari

Hi @Harry ,

Great that you are interested in MQTT and HiveMQ, welcome to the community!

I am not 100% clear about “I trying to acheive the persistant session & Queuing message”. Perhaps you want to connect the subscriber first, then kill its session without sending a DISCONNECT packet to the broker, then publish a few messages to the topic, and then connect the subscriber again (i.e. using the same --identifier)?

Kind regards,
Dasha from HiveMQ Team