-
Notifications
You must be signed in to change notification settings - Fork 928
overlapping_topics
Andy Piper edited this page Dec 2, 2013
·
1 revision
(all commands are sent by the same client):
- Subscribe to A/#
- Subscribe to A/B
- Publish message M to topic A/B
The client will receive the message once.
(all commands are sent by the same client):
- Publish message M1 to topic A/B with retain
- Publish message M2 to topic A/C with retain
- Publish message M3 to topic A/D with retain
- Subscribe to A/#
The client will receive all three of the retained messages.
Given the topic tree: test test/one test/two/two
- Subscribe to test/#
- Unsubscribe from test/one
- Unsubscribe from test/two
The client will still receive messages sent to test/one and test/two. You can only unsubscribe from a topic you have explicitly subscribed to; you cannot punch holes in previous subscription.
MQTT Community Wiki by mqtt.org community members is licensed under a Creative Commons Attribution 4.0 International License and was made possible by the generosity of all of its contributors.