You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

When you have the Data Format Type under MQTT Transmission > Servers > Advanced Settings set to Sparkplug_B_v1_0_JSON, MQTT Transmission will parse a Sparkplug command message correctly.

Topic

If publishing a command to an Edge Node level tag, the topic structure will be spBv1.0/groupID/DCMD/edgenodeID

If publishing a command to a Device level tag, the topic structure will be spBv1.0/groupID/DCMD/edgenodeID/deviceID

Payload

The JSON formatted payload should be in the format below:

{
   "timestamp":1681316577447,
   "metrics":[
      {
         "name":"Control Tag",
         "timestamp":1681316576446,
         "dataType":"Int32",
         "value":9000
      }
   ],
   "seq":0
}



Additional Resources

  • No labels