MQTT client
Parameters
| Parameter | Datatype | Default Value | Description |
|---|---|---|---|
| DEBUG | enum | 0 | Enable debugging |
| DUMP | enum | 0 | Enable communication dump |
| BROKERS | list_of_inet_addr | Broker TCP/IP hostname:port, separate multiple entries with comma | |
| KEEPALIVE_INTERVAL | float | 10 | Keep-alive interval [s] |
| RECONNECT_DELAY | float | 10 | Reconnection delay after connection lost |
| QOS | enum | 2 | MQTT publish/subscribe QoS |
| USERNAME | string | Optional username | |
| PASSWORD | string | Optional password |
Measurements
This stack supports measurements.
Measurement address
Type: regex
Description:
[[<format>[::<xpath>]]@]topic
Examples:
/ra/group/A4KVB1
raw@/ra/group/A4KVB1
json::/dynamic_priority@/ra/group/A4KVB1
Commands
This stack supports commands.
Command address
Type: regex
Description:
[[<format>[::<pattern>]]@][!]topic
Examples:
!/ra/group/A4KVB1
raw@/ra/group/A4KVB1
json::{"value": $value, "timestamp": $timestamp}@/ra/group/A4KVB1