Skip to content

Actions ​

An action is a matching rule that connects MQTT messages to external data systems, including data processing and mapping. MQTT protocol devices connect to the MQTT service to deliver messages, and actions provide the association for integrating data into external data systems, enabling seamless integration between devices and other business systems.

1. Rule Actions ​

Go to Rule Engine -> Actions to open the Actions list page. Actions are based on Connectors.

Select an Action Type and click Next to continue configuring.

KAFKA Action Configuration ​

  • Enter the action name
  • Select the Kafka connector. The connector here is created in the connector list
  • Topic: this is the Kafka topic, named according to the Kafka topic
  • key: used for mapping, the content of reported data to be transmitted; generally no need to fill in
Screenshot of the KAFKA action configuration page

RABBIT-MQ Action Configuration ​

  • Enter the action name
  • Select the RabbitMQ connector. The connector here is created in the connector list
  • Queue: this is the RabbitMQ queue, filled in according to the RabbitMQ queue
  • Exchange: the RabbitMQ exchange, optional.
Screenshot of the RABBIT-MQ action configuration page

MQTT Service Action Configuration ​

  • Enter the action name
  • Select the MQTT connector. The connector here is created in the connector list
  • Topic: this is the MQTT topic, named according to the MQTT topic
  • qos: the MQTT message quality of service
  • retain: whether to retain the message
Screenshot of the MQTT service action configuration page

ROCKET-MQ Action Configuration ​

  • Enter the action name
  • Select the RocketMQ connector. The connector here is created in the connector list
  • Topic: this is the RocketMQ topic, named according to the RocketMQ topic
  • key: the RocketMQ key value
  • tag: the RocketMQ tag
Screenshot of the ROCKET-MQ action configuration page

WEBHOOK Action Configuration ​

  • Enter the action name

  • Select the Webhook connector. The connector here is created in the connector list

  • template: the template for pushed data, which can be selected according to actual needs. Available fields are as follows:

    FieldDescription
    clientIdClient ID
    proto_nameProtocol type name
    ip_addressClient IP
    nodeNode IP
    portClient port
    tsEvent trigger time
    keepaliveHeartbeat interval
    clean_startWhether to clean session
    statusWhether online

    template example

    json
    {
      "clientId":${clientId} 
      "payload" :${payload}
    }
    Screenshot of the WEBHOOK action configuration page

FastBee | fastbee.cn