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/NCMD/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":"MyControlTag",
         "timestamp":1681316576446,
         "dataType":"Int32",
         "value":9000
      }
   ],
   "seq":0
}



Additional Resources

  • No labels