Troubleshooting
Find the MQTT topic an edge device publishes with a wildcard
Short answer
Subscribe the Node-RED MQTT In node to # with the debug node set to complete msg object and read the full published path; the base topic is only its first segment. Narrow the filter to a device branch, confirm Make Public is enabled on every point, and expect one numeric payload per topic, not an array.

On this page
- The device publisher and the Node-RED broker configuration are separate clients
- Fill the broker fields when the broker requires no credentials
- The base topic is only the first segment
- Subscribe to # and read the complete msg object
- Narrowing # down to the Furnace11 Oil Temp channel
- Discovery checklist
- Questions asked
Subscribe the Node-RED MQTT In node to # and set the attached debug node to complete msg object: every topic on the broker then arrives with its full published path, and you narrow the filter from there. The base topic you type into the edge device's MQTT configuration is only the first segment of what subscribers see, which is why a filter that stops at base/channel/type stays silent. Two other things hide the data: the Make Public switch on each point, and the assumption that all channels arrive as one array.
The device publisher and the Node-RED broker configuration are separate clients #
The MQTT configuration in the device's own management interface — on a groov RIO that is groov Manage under MQTT -> Configuration — defines the device's publisher client. The broker configuration node in Node-RED defines a different client. For this task you need only the first one; configure Node-RED as a publisher only if it has separate data of its own to send.
In the worked case below, the broker already ran on 192.168.8.157 at port 1883, answered without credentials, and the Node-RED side was confirmed working before the device was touched. For the trade-offs of routing edge data through a broker rather than a direct socket connection, read MQTT broker versus direct TCP from a Node-RED edge device.
Fill the broker fields when the broker requires no credentials #
With authentication disabled on the broker, the username and password fields are not checked: enter any username the device's form accepts and leave the password blank. The client ID is a different matter. The device documentation defines no required format for it, but the broker uses the client ID to manage sessions, so give the device a value no other connected client uses. If the connection drops repeatedly under the same ID, suspect that collision before suspecting credentials.
The base topic is only the first segment #
In groov Manage the MQTT Base Topic field sets the namespace root, and the vendor's guidance is to enter a base topic, with optional group and subgroup topics, that reflects a location, machine or device group. What subscribers receive is that root followed by the point's own published path. A base topic of Furnace11 becomes the first of several segments, never a complete subscription topic in itself.
Publishing is per point. Each channel carries its own Make Public switch, and a point with the switch off never reaches the broker, whatever filter the subscriber uses.
Subscribe to # and read the complete msg object #
Start with the multi-level wildcard #, which matches every topic the broker carries, so one subscription shows what the device actually publishes and under which namespace. The debug node's default output shows msg.payload only; change it to complete msg object so msg.topic and msg.payload both appear. Expect volume: on a broker carrying many devices or a large retained-message store, # pulls everything at once, so move to a branch filter as soon as the path is known.
Narrowing # down to the Furnace11 Oil Temp channel #
Inputs, each with its source:
- Broker at 192.168.8.157, port 1883, no credentials — the network setup from the case.
- Base topic
Furnace11— the value entered in the device's MQTT Base Topic field. - Observed topic from the debug pane:
Furnace11/channel/type/OptoMMP/Modules/Channels/Furnace 11 Oil Temp/Eu. - Observed payload: a single number, 179.831726.
The rule: in an MQTT topic filter, # matches the level where it sits and every level below it, and it must be the last character of the filter. A filter without a wildcard matches exactly one topic.
The arithmetic: the observed topic splits into 8 segments — Furnace11, channel, type, OptoMMP, Modules, Channels, Furnace 11 Oil Temp, Eu. The base topic accounts for 1 of those 8. A subscriber filter of Furnace11/channel/type specifies exactly 4 segments, and 4 does not match 8, so the broker delivers nothing on that filter. The filter # matches all 8 segments of every topic on the broker; the filter Furnace11/# matches any topic whose first segment is Furnace11, which still covers all 8 segments of this channel.
The result: with Furnace11/# the channel arrives as msg.topic set to the full 8-segment path above, with msg.payload set to 179.831726 as a number.
The decision: subscribe to the complete path when you want only that one engineering-unit value; use the device branch wildcard while commissioning that device; keep # for first discovery only and drop it once the namespace is mapped.
Discovery checklist #
- Confirm the broker address and port on the Node-RED side, and leave the credential fields empty if the broker has none.
- Switch the debug node to complete msg object before connecting.
- Subscribe to
#and confirm that any traffic arrives at all. - Check Make Public on each point that should publish; it is one switch per channel.
- Read msg.topic from an arriving message and copy the exact path, spaces included.
- Narrow the filter to the device branch, then to the full topic for a single point.
- Check the payload type in the debug pane before writing parsing logic; a single numeric value needs no array split. For an example of getting the payload shape right before it leaves Node-RED, see the guide on publishing Modbus values with the correct payload.
Questions asked
What goes in the client ID, username and password fields when the broker needs no credentials?
Enter any username the device's MQTT form accepts and leave the password blank, because an open broker does not check either field. The client ID is treated differently: the device documentation sets no required format, but the broker uses it to manage sessions, so pick a value that no other connected client on that broker is using.
Why does my subscriber stay silent when I filter on the base topic?
A filter equal to the base topic matches exactly one topic, the single-segment root itself, while the device publishes under a longer path that starts with it. Subscribe to # once, read msg.topic in the debug pane, then enter either the full path or the device branch followed by the multi-level wildcard.
Do multiple channels arrive as one array to split in Node-RED?
No. Each published point travels as its own topic carrying a single numeric payload; in the worked case one temperature channel arrived as the number 179.831726 on its own topic. Build the flow around one topic per point and verify each channel in the debug pane before adding any parsing logic.
Why does the debug pane show only the payload value?
The debug node's default output is msg.payload alone, so the topic never reaches the pane. Change the node's output setting to complete msg object and both msg.topic and msg.payload appear; without msg.topic you cannot write a filter that matches the published path.
Should MQTT topic names contain spaces?
The observed channel name contained spaces and still matched a wildcard filter, but spaces make topics easy to mistype and hard to read inside filters. When you control the naming, prefer camelCase or underscores, for example Furnace11OilTemp instead of a three-word name with blanks.

