Can mosquitto allow -r without saving last
Can anyone tell me if I can send a mosquitto message (let's say using mosquitto_pub) and have that message be "retained" but...in a reasonable way?
Meaning...right now if I use -r I think it is, the message is retained Forever. I read your docs, makes sense for that purpose but not for many many other purposes.
For example:
I want to send a teacher a message:
1.) Hey Teacher
...They aren't connected.
2.) When they connect I want them to see the message (and any others stored).
THEN...
3.) If they log off, and log back on...I want them to see Nothing (unless I have posted a new message for them).
Does this seem like a normal thing? Please advise. Thanks.
Joe
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- mosquitto Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Joe B for more information if necessary.