- ValueProvider
- OperationProvider ❌
- SubscriptionProvider ✔️
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 |
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 |
{
"format": "JSON",
"topic": "example/myTopic",
"template": "{\"foo\" : \"${value}\"}"
}
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. |
{
"format": "JSON",
"topic": "example/myTopic",
"query": "$.foo"
}