You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an electrical measuring device that exports a list of measurements via MQTT. The topic is formatted as follows: measuring/[site]/[param], and the data is published in plain text.
I'm using ThingsBoard IoT Gateway (version 3.7.0) with ThingsBoard version 3.9.1. I've configured an MQTT connector that connects to the broker of the measuring device.
In the "Data Mapping" section, I used a topic filter like measuring/site1/+ to subscribe to all parameters for site1. I set the Payload type to Bytes and the value expression to [:]. However, I can't figure out how to extract the key (e.g., L1-Voltage, Freq) from the MQTT topic using a regular expression or placeholder. If I enter a regular expression into the key field, the telemetry data arrives in ThingsBoard with the literal regex string as the key name, not the extracted parameter name.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have an electrical measuring device that exports a list of measurements via MQTT. The topic is formatted as follows:
measuring/[site]/[param]
, and the data is published in plain text.For example:
I'm using ThingsBoard IoT Gateway (version 3.7.0) with ThingsBoard version 3.9.1. I've configured an MQTT connector that connects to the broker of the measuring device.
In the "Data Mapping" section, I used a topic filter like
measuring/site1/+
to subscribe to all parameters forsite1
. I set the Payload type toBytes
and the value expression to[:]
. However, I can't figure out how to extract thekey
(e.g., L1-Voltage, Freq) from the MQTT topic using a regular expression or placeholder. If I enter a regular expression into thekey
field, the telemetry data arrives in ThingsBoard with the literal regex string as the key name, not the extracted parameter name.Beta Was this translation helpful? Give feedback.
All reactions