Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AUTOSOL MQTT’s SparkplugB publisher has a GroupID of “LocalGroup” and NodeID of “FirstNode” (set on the Sparkplug B tab).

What topics should appear in the broker?

When the publisher first starts, there will be a node birth:

...

Followed by a birth message for our the device(s). These will contain the initial values for all of the tags associated with each device:

...

Finally, in the course of normal operation, there will be a series of data messages. These are published at a the rate defined by the Publish Interval in the device object, assuming if any tag’s value has changed within that interval:

...

Code Block
spBv1.0/LocalGroup/NDEATH/FirstNode
Info

As Sparkplug B is not a human readable format, a Sparkplug Decoder is needed to resolve the contents of these messages.

Standard Publishers

For the following example, eACM is collecting data from a device named “Device1”, with the tag “Tag1”.

AUTOSOL MQTT’s Standard publisher has a NodeID of “LocalNode” (set on the MQTT tab).

What topics

...

will appear in the broker?

When AUTOSOL MQTT starts up, tag data will appear with the topic:

...

To write to a tag using the standard publisher you would simple have the payload be the value you want to write, in clear text, and you would publish to the topic below:, publish to the topic below with the value in clear text.

Code Block
LocalNode/Device1/WRITE/Device1/Tag1