Mosquitto wildcard and retain messages bug? [message #1841252] |
Fri, 07 May 2021 21:45 |
Florent Dupont Messages: 5 Registered: April 2021 |
Junior Member |
|
|
Hi everyone,
I am observing a behaviour with wildcard and retained messages that looks like a bug to me, but I'd like someone to confirm.
I have a retained message at topic A/B/C/D/E with payload "Hello". If:
- I subscribe to topic A/B/C/D/E, I receive the message "Hello" with flag retain set to true, as expected
- I subscribe to topic A/B/C/+/#, I receive the message "Hello" with flag retain set to true, as expected
- I subscribe to topic A/B/C/#, I do not receive the retained message "Hello".
- In all 3 cases above, if I push a message to the topic A/B/C/D/E, I receive the message just fine, the problem is just with the retained messages. Given # is meant to be a wildcard working across multiple layers of topics, I am surprised by this behaviour and couldn't find anything explaining this. Is that a bug?
I run Mosquitto version 2.0.1, on docker, in case that's relevant.
Thanks.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03297 seconds