# emqx-rule-engine IoT Rule Engine for EMQ X Broker. ## Concept ``` iot rule "Rule Name" when match TopicFilters and Conditions select para1 = val1 para2 = val2 then take action(#{para2 => val1, #para2 => val2}) ``` ## Architecture ``` |-----------------| Pub ---->| Message Routing |----> Sub |-----------------| | /|\ \|/ | |-----------------| | Rule Engine | |-----------------| | | Backends Services Bridges ``` ## SQL for Rule query statement ``` select id, time, temperature as t from "topic/a" where t > 50; ```