Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "BaSyx / Documentation / Components / DataBridge / Features / Protocol Integration / MQTT"

(Created page with "= MQTT = The MQTT broker can be integrated with DataBridge. The paho component provides a connector for the MQTT messaging protocol using the Eclipse Paho library. == Configu...")
 
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
  
 
== Configuration ==
 
== Configuration ==
To configure MQTT source in DataBridge you need to provide the '''unique id''', and the MQTT broker server details like '''host''', '''port''', and the '''topic'''.
+
To configure MQTT source in DataBridge you need to provide the '''unique id''', and the MQTT broker server details like '''host''', '''port''', '''topic''', '''clientId''' and the '''credentials'''.
  
 
=== Sample Configuration ===
 
=== Sample Configuration ===
Line 12: Line 12:
 
"serverUrl": "localhost",
 
"serverUrl": "localhost",
 
"serverPort": 1884,
 
"serverPort": 1884,
"topic": "Properties"
+
"topic": "Properties",
 +
                "clientId": "mqttx_c18f5405",
 +
"credentials": {
 +
"userName": "test",
 +
"password": "test123"
 +
}
 
}
 
}
 
]
 
]
Line 23: Line 28:
  
 
== Working Example ==
 
== Working Example ==
The integration example with MQTT as a data source, JSONata as a transformer, and AAS as a data sink is on [https://github.com/eclipse-basyx/basyx-databridge/tree/main/basyx.components.databridge.examples/basyx.components.databridge.examples.mqtt-jsonata-aas GitHub DataBridge Example].
+
The integration example with MQTT as a data source, JSONata as a transformer, and AAS as a data sink is on [https://github.com/eclipse-basyx/basyx-databridge/tree/main/databridge.examples/databridge.examples.mqtt-jsonata-aas GitHub DataBridge Example].

Latest revision as of 07:55, 28 February 2024

MQTT

The MQTT broker can be integrated with DataBridge. The paho component provides a connector for the MQTT messaging protocol using the Eclipse Paho library.

Configuration

To configure MQTT source in DataBridge you need to provide the unique id, and the MQTT broker server details like host, port, topic, clientId and the credentials.

Sample Configuration

[
	{
		"uniqueId": "property1",
		"serverUrl": "localhost",
		"serverPort": 1884,
		"topic": "Properties",
                "clientId": "mqttx_c18f5405",
		"credentials": {
			"userName": "test",
			"password": "test123"
		}
	}
]

Similarly, you can configure multiple MQTT brokers inside the configuration file.

Naming Convention

The name of the MQTT configuration file should be mqttconsumer.json.

Working Example

The integration example with MQTT as a data source, JSONata as a transformer, and AAS as a data sink is on GitHub DataBridge Example.

Back to the top