no messages received after reconnected

Asked by Rogge

Thanks a lot.
First, A set cleansession = false, connects to the mosquitto, and subscribe a topic T;
Sec, B connects too, and publish a message with T, A got it!
Third, A disconnect, B send some messages with T
Four, B disconnect, then reconnected, subscribe the same T, but no messages received.

And also B reconnect using the same client id.

I set mosquitto.conf default.

Question information

Language:
English Edit question
Status:
Solved
For:
mosquitto Edit question
Assignee:
No assignee Edit question
Solved by:
Roger Light
Solved:
Last query:
Last reply:
Revision history for this message
Best Roger Light (roger.light) said :
#1

Did you use QoS 1 or 2 when both subscribing and publishing? QoS 0 messages are not queued for durable clients by default.

Revision history for this message
Rogge (hhssxxu) said :
#2

Thanks Roger Light, that solved my question.