Connectivity Software User's Guide and Reference
PublishDeviceMetric Method



OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug Namespace > IEasySparkplugConsumerExtension Class : PublishDeviceMetric Method
Publishes a payload with a single metric for a Sparkplug device.

In Sparkplug terms, this method effectively sends the DCMD message to the device.

If there is an error publishing the payload, this method throws OpcLabs.EasySparkplug.OperationModel.SparkplugException.

Overload List
OverloadDescription
Publishes a single metric for a device, specifying the device descriptor, the metric name and metric data.  
Publishes a single metric for a device, specifying the host descriptor, device descriptor, the metric name and metric data.  
Publishes a single metric for a device, specifying the host descriptor, group ID, edge node ID, device ID, the metric name and metric data.  
Publishes a single metric for a device, specifying the group ID, edge node ID, device ID, the metric name and metric data.  
Remarks

 

Sparkplug is a trademark of Eclipse Foundation, Inc. "MQTT" is a trademark of the OASIS Open standards consortium. Other related terms are trademarks of their respective owners. Any use of these terms on this site is for descriptive purposes only and does not imply any sponsorship, endorsement or affiliation.

Requirements

Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows

See Also