ConfigModel

Type: object

Type: array
No Additional Items

Each item of this array must be:

Type: object

The configuration for a MQTT host

Type: object Default: null

The MQTT auth mechanism

Type: null

No authentication

User/Password

Type: object

Authentication using a username and password

Type: integerFormat: uint Default: 1024

The buffer size for each connection

Value must be greater or equal to 0.0

Type: string

The MQTT host

Type: string

The MQTT client ID

Type: integerFormat: uint64

The MQTT keep alive time in seconds

Value must be greater or equal to 0.0

Type: integerFormat: uint16

The MQTT port

Value must be greater or equal to 0.0

Type: array

All the topics to subscribe/publish

No Additional Items

Each item of this array must be:

Type: object

The configuration for a MQTT topic

Type: array

A list of datapoints for this topic, which can either be a subscription or publication depending on the mode.

No Additional Items

Each item of this array must be:

Type: object

Datapoint mode

Publication

Type: object

The mapping of a datapoint to a MQTT JSON It will send MQTT messages with the following structure: json { "datapoint_name": "some_name", "value": UInt32, "timestamp": 1234567890 }

Type: string

The name of the datapoint This datapoint must be set as a subscriber

Type: enum (of string)

Must be one of:

  • "publication"

QoS

Type: enum (of string)

The QoS level for the MQTT message

Must be one of:

  • "AtMostOnce"
  • "AtLeastOnce"
  • "ExactlyOnce"

Type: boolean

The retain flag for the MQTT message

Subscription

Type: object

The mapping of a MQTT JSON value to a datapoint

Type: string

The name of the datapoint This datapoint must be set as a publisher

Type: enum (of string)

Must be one of:

  • "subscription"

Type: string or null

If the MQTT message contains a timestamp, this is the path to the timestamp in nanoseconds. If this field is set to None, the timestamp will be set to the current time.

Type: string

The path to the MQTT JSON value

Example If the MQTT message is: json { "temperature": { "value": [25.0, 10, 20], "unit": "C" } } and we pretend to map the first element of the value array, then the path is temperature.value[0]

Type: enum (of string)

The type of the MQTT value

Must be one of:

  • "Float32"
  • "Float64"
  • "UInt32"
  • "UInt64"
  • "Int32"
  • "Int64"
  • "Timestamp"
  • "Boolean"

QoS

Type: enum (of string) Default: "AtMostOnce"

The QoS level for all the subscriptions

Must be one of:

  • "AtMostOnce"
  • "AtLeastOnce"
  • "ExactlyOnce"

Type: string

The name of the topic

Type: string

The MQTT server version This is used to represent the MQTT version in the configuration. The version is represented as a string, e.g., "3", "v3.1.1", "5", "5.0" , "v4". Any version up to "4" will be treated as "3", and "5" will be treated as "3".