MQTT Asset Connection

Supported Providers

  • ValueProvider

    • read ❌

    • write ✔️

  • OperationProvider ❌

  • SubscriptionProvider ✔️

Configuration Parameters

Asset Connection

Name Allowed Value Description
serverUri String URL of the MQTT server, e.g. tcp://localhost:1883
clientId String optional Id of the MQTT client used to connect to the server, default: random value
username String optional Username for connecting to the MQTT server
password String optional Password for connecting to the MQTT server

Value Provider

Name Allowed Value Description
format JSON|XML Content format of payload
topic String MQTT topic to use
template String optional Template used to format payload

Example

{
	"format": "JSON",
	"topic": "example/myTopic",
	"template": "{\"foo\" : \"${value}\"}"
}

Subscription Provider

Name Allowed Value Description
format JSON|XML Content format of payload
topic String MQTT topic to use
query String optional Additional information how to extract actual value from received messages, depends on format, e.g. for JSON this is a JSON Path expression.

Example

{
	"format": "JSON",
	"topic": "example/myTopic",
	"query": "$.foo"
}