DDDHuang 8b0adf69d2 Merge pull request #7926 from DDDHuang/rule_api_errormsg преди 3 години
..
etc b3d9605722 chore(conf): EMQ X -> EMQX in conf files преди 4 години
i18n a58b88aeec chore(i18n): fix more and more typos преди 3 години
include 02c3f87b31 style: reformat all remaining apps преди 3 години
src 8b0adf69d2 Merge pull request #7926 from DDDHuang/rule_api_errormsg преди 3 години
test 5210cd6e8d fix(test): rule engine api SUITE , bad rule name преди 3 години
.gitignore 4a877a3a69 chore(apps): relocate some apps преди 5 години
README.md 1be3eb1446 chore: rename EMQX Broker to just EMQX преди 4 години
rebar.config 74c33cd4e5 feat(rule_engine): add jq function to the rule engine преди 3 години

README.md

emqx-rule-engine

IoT Rule Engine

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;