Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » 1.5.8-0: $SYS Subscription Wildcards(Get no data for specific topic, but <top-level-name>/# returns data)
1.5.8-0: $SYS Subscription Wildcards [message #1805260] Wed, 10 April 2019 13:51 Go to next message
Rial Williams is currently offline Rial WilliamsFriend
Messages: 2
Registered: April 2019
Junior Member
I have two brokers (both 1.5.8-0) I'm working with. One running on a local Raspberry Pi collecting data and it bridges all data to a remote Linux LAMP server (UbuntuServer). The local mosquitto.conf file has line "topic $SYS/broker/uptime in 0 UbuntuServer/ """ in it which says that the local broker subscribes to the remote bridged broker $SYS/broker/uptime" topic which I use to monitor the local connection to the remote broker (UbuntuServer). At the local broker, if I subscribe to "UbuntuServer/#" I see "UbuntuServer/$SYS/broker/uptime" topic show up regularly with the proper data in it. If I subscribe to "UbuntuServer/$SYS/#" or any more granular topic, nothing shows up. I see this behavior in the program I'm working with and also with a generic MQTT client (MQTT.fx) running on my Windows laptop. I was running mosquitto 1.5.3 until recently and I never noticed this behavior before. Has anyone seen this behavior? Is this something specific to $SYS topics? Thanks so much in advance.
Re: 1.5.8-0: $SYS Subscription Wildcards [message #1805419 is a reply to message #1805260] Mon, 15 April 2019 07:21 Go to previous messageGo to next message
Roger Light is currently offline Roger LightFriend
Messages: 90
Registered: September 2013
Member
What is happening here is that you have the bridge configured to just receive the $SYS/broker/uptime topic. If you want to have more things appear on the local broker then you will need to change the bridge topic subscription to something like "topic $SYS/broker/# ..."
Re: 1.5.8-0: $SYS Subscription Wildcards [message #1805466 is a reply to message #1805419] Mon, 15 April 2019 16:06 Go to previous message
Rial Williams is currently offline Rial WilliamsFriend
Messages: 2
Registered: April 2019
Junior Member
Maybe I wasn't clear. Yes, I know I have only subscribed to a single topic ("$SYS/broker/uptime") coming from the remote broker. In the local broker, "UbuntuServer/" is prepended to it. That's what I want. At the local broker, if I subscribe to "UbuntuServer/#", I see what I'm after, but if I subscribe to "UbuntuServer/$SYS/#" I see nothing. This doesn't seem right.
Previous Topic:Received MQTT data from a subscribed topic on text file.
Next Topic:Disappearing Mosquitto 1.6.0 MQTT bridge messages
Goto Forum:
  


Current Time: Sat Apr 27 04:23:16 GMT 2024

Powered by FUDForum. Page generated in 0.03107 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top