Replay to #7
What makes the difference when i use a pending session? I currently try to make an synchronisation based on mqtt. I publish json files, the topic contains the timestamp.
When i subscribe my topics, i get all messages from the beginning, even when i have sent them with QOS2. Only when i dont subscribe, i am in the last session and get exactly the messages i have to get. But then it could come to the situation, that i client looses completly this session, so i have to subscribe for new.
When i would see, if a session is waiting, i could use it, when no session is waiting, i could subscribe it new.
Because of the timestamps i can currently handle the situation, but i think, that the concept of mqtt with persistent sessions can only realized perfect.
Maybe someone knows, why i get all messages, even with QOS2, when i subscribe new. My client id is also the same.