action, targetDevice, and count from the JSON message in the E23VBC3GE8/device_02/event topic and then filter them by count <= 3 to get the final processed data for further forwarding, use the following rule:

{"MsgType": "Publish","Topic": "AD4GVS5549/device/data","Seq": 13107192,"PayloadLen": 17,"Payload": "dGhpcyBpcyBhIGV4YW1wbGU=","ProductId": "AD4GVS5549","DeviceName": "device","Time": "2018-08-14 15:12:05",}
StatusChange type. Valid values: Online (connection), Offline (disconnection).{"devicename":"device","payload":{"params":{"power_switch":1,"color":1,"brightness":32}},"productid":"AD4GVS5549","seq":2,"timestamp":1587109346,"topic":"AD4GVS5549/device/data"}
int type.* can be used to forward all binary data.device_status.switch can be used to get the value of switch.# and + wildcards to define them.# represents 0 or more arbitrary topic segments, which can only be placed at the end of the topic.+ represents 1 arbitrary topic segment, which can be placed in the middle of the topic.house_monitor/+/gethouse_monitor/thermometer/get and house_monitor/door/get.house_monitor/door/switch/get, because + can represent only 1 topic segment.house_monitor/#house_monitor/thermometer and house_monitor/door/switch/get.house/#/get, because # can only be placed at the end of the topic.Operator | Description | Example |
= | Equal to | color = 'red' |
<> | Not equal to | color <> 'red' |
AND | Logic AND | color = 'red' AND siren = 'on' |
OR | Logic OR | color = 'red' OR siren = 'on' |
( ) | The content in the parentheses is a complete entity | color = 'red' AND (siren = 'on' OR siren ='isTest') |
+ | Arithmetic addition | age = 4 + 5 |
- | Arithmetic subtraction | age = 5 - 4 |
/ | Division | age = 20 / 4 |
* | Multiplication | age = 5 * 4 |
% | Remainder | age = 0 % 6 |
< | Less than | 5 < 6 |
<= | Less than or equal to | 5 <= 6 |
> | Greater than | 6 > 5 |
>= | Greater than or equal to | 6 >= 5 |
Was this page helpful?
You can also Contact sales or Submit a Ticket for help.
Help us improve! Rate your documentation experience in 5 mins.
Feedback