Open slavino opened 6 years ago
@slavino Are you saying that your first subscription for #
receives messages sent to $SYS/#
? This would be expected behaviour, as $SYS/#
would match #
according to which specification?
http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html
4.7.2 Topics beginning with $
The Server MUST NOT match Topic Filters starting with a wildcard character (# or +) with Topic Names beginning with a $ character [MQTT-4.7.2-1]. The Server SHOULD prevent Clients from using such Topic Names to exchange messages with other Clients. Server implementations MAY use Topic Names that start with a leading $ character for other purposes.
etc.
bug exists in release for Maven
The class TopicMessageListener subscribed to "#" receives as well "$SYS/#" so it seems those aren't properly filtered.