MQTT - Check the filter output

2 Posts
2 Users
0 Likes
36 Views
n.kunzer
(@n-kunzerarcinfo-com)
Posts: 1236
Member Moderator
Topic starter
 

Starting playing with MQTT, i realized something is not obvious: When you apply a filter you don't know the result.
So, how to check the output of the Filter?
I found a trick:
- Assuming the Topic is MyTopic/Sensor
- Assuming the Filter name is Filter1

1. Create a TEXT variable to get the complete payload with the following mapping syntax (not mandatory for this trick)

MQTT#Generic#MyBroker#SUB#0#@MyTopic/Sensor
Doing this you can see the complete string you received

2. Create a TEXT variable to get the result of the filter with the following mapping syntax
MQTT#Generic#MyBroker#SUB#0#@MyTopic/Sensor##Filter1

Nico

 
Posted : 04/12/2019 1:14 pm
f.boissie
(@f-boissiearcinfo-com)
Posts: 44
Member Moderator
 

There is an update (# separator becomes |) in the driver, see the documentation in KB1047. Now the Nico's comment is:

1. Create a TEXT variable to get the complete payload with the following mapping syntax (not mandatory for this trick)

MQTT|Generic|MyBroker|SUB|0|@MyTopic/Sensor
Doing this you can see the complete string you received

2. Create a TEXT variable to get the result of the filter with the following mapping syntax
MQTT|Generic|MyBroker|SUB|0|@MyTopic/Sensor||Filter1

 
Posted : 05/02/2020 8:37 pm