hello!
i’m triyng to filter some incoming messages from an external mqtt broker. i do this creating asset items and linking them to an mqtt agent. at the subscribe link (one for all kynd of messages) i receive datas. i have 2 kind of data: a read with some parameters and a temperature. when $.command is “sensor.read” i have some other field like $.target_type field, while when $.command is “sensor.temperature” i have $.temperature but no $.target_type. so i want to distinguish messages using message match filters and predicate (but correct me if is wrong way).
i have some questions:
- is it possible to have a unique agent and populate all the fields at once when i get a payload? (is $.command is “sensor.read” i have multiple values i’m interested in)
- see this screenshot: why the filter doesn’t works? as you can see the target_type field is filled by a wrong payload.
with working filter i will need to populate my value using “Value Filters”, JSON path, $.target_type
thank you so much