Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Add an unsubscribe option to mosquitto_sub, or separate app ?

Hi Dean,

That sounds like a reasonable request for the clean session=false case. I think I'll work it slightly differently to what you've said, so don't worry about sending your code over.



On 14 Dec 2015 20:16, "Dean Arnold" <renodino777@xxxxxxxxx> wrote:
I recently had a support issue where a user had subscribed to a broker with a wildcard topic, then re-subscribed with a specific topic, and continued to get msgs for all the wildcard topics.

My ultimate solution was to hack mosquitto_sub to add a -U option that would simply unsubscribe from any specified topics, and exit. Is this an option that would be generally useful ? Or maybe an alternate mosquitto_unsub app to accomplish the same thing ? If there's any interest, I'd be happy to contribute my code.

After a quick search, I couldn't find any simple apps available to accomplish the same thing, so if there are any, I'd appreciate pointers to them.

Dean Arnold

mosquitto-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top