MQTT Per-Asset Topics

This type of distribution sends incoming data to your MQTT server, with one topic per ARDI asset that has live data.

This will consolidate all updates about an asset into a single message, reducing the total size of the MQTT namespace and reducing the number of total messages sent.

As an alternative that has one MQTT message per point of data, see mqtt.

Type Name

The type name to use in your configuration is mqttob (MQTT OBject based).

Configuration

The following configuration options are accepted…

NameNotesPurpose
hostnameRequiredThe DNS name or IP of your MQTT server
portDefault 1883The port number used to communicate to the MQTT server
topicRequiredThe base topic to publish to
usernameThe username to connect to the MQTT server
passwordThe password to connect to the MQTT server

Suggestions

We usually suggest using the fullpath option in your configuration to replicate your ARDI asset hierarchy in your MQTT system. But this is not a requirement.

Example Payload

{
   "Temperature - Actual" : 92.5,
   "Temperature - Target": 92,
   "Status": 1