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
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


