Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

MQTT event receiver is an internal event receiver that comes with WSO2 products. You can configure it with XML, JSON, and text input mapping types.

...

Follow the steps below before starting the MQTT event receiver configurations.

  1. Download MQTT client library (mqtt-client-0.4.0.jar).
  2. Add the JAR file to the <PRODUCT_HOME>/repository/components/lib/ directory

    Configure WSO2 CEP by adding relevant jars to support MQTT transport.

  3. Start the MQTT-supported server.

...

Adapter Property
Description
Configuration file propertyExample

Topic

A valid name for the MQTT broker topic which is used to receive messages on the MQTT input event adapter.

topic
MQTTInputEventAdapter

Broker Url

MQTT broker URL. You can use the same URL f or WSO2 MB (when offset is zero).

url
tcp://localhost:1883
Username

A valid username for the broker connection.

usernamemqtt-user
Password A valid password for the broker connection.
password
mqtt-password
Clean Session Persist topic subscriptions and acknowledge positions across client sessions.
cleanSession
true/false
Client Id Unique client ID used by the server to identify a client when it reconnects. Used for durable subscriptions or reliable delivery of messages.
clientId
clientid