Skip to main content

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

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.

thnx,
Dean Arnold

Back to the top