Bridge data to EMQX

Setup another MQTT broker using emqx, taking Mac OSX for instance:

  1. $ brew tap emqx/emqx/emqx
  2. $ brew install emqx
  3. # start emqx
  4. $ emqx console

Create a rule:

Go to EMQX DashboardEMQX Bridges - 图1 (opens new window), select the “rule” tab on the menu to the left.

Select “message.publish”, then type in the following SQL:

  1. SELECT
  2. *
  3. FROM
  4. "message.publish"

image

Bind an action:

Click on the “+ Add” button under “Action Handler”, and then select “Data bridge to MQTT Broker” in the pop-up dialog window.

image

Bind a resource to the action. Since the dropdown list “Resource” is empty for now, we create a new resource by clicking on the “New Resource” to the top right, and then select “MQTT Bridge”: