Shawn 5ca0d4f856 fix(rule): rename the eventname of bridge sources to $bridges/mqtt:* před 3 roky
..
etc b3d9605722 chore(conf): EMQ X -> EMQX in conf files před 4 roky
include 63167cea70 chore: update copyright před 4 roky
src 5ca0d4f856 fix(rule): rename the eventname of bridge sources to $bridges/mqtt:* před 3 roky
test b69dca4f08 feat(rule): add testcase for '/delivery_dropped' před 4 roky
.gitignore 4a877a3a69 chore(apps): relocate some apps před 5 roky
README.md 1be3eb1446 chore: rename EMQX Broker to just EMQX před 4 roky
rebar.config 82e3565344 chore: major mode file variable for Emacs před 4 roky

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;