Connectivity Software User's Guide and Reference
Read Event (SparkplugMetric)



OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug Namespace > SparkplugMetric Class : Read Event
Raised for obtaining the Sparkplug metric read data.
Syntax
'Declaration
 
Public Event Read As SparkplugMetricReadEventHandler
'Usage
 
Dim instance As SparkplugMetric
Dim handler As SparkplugMetricReadEventHandler
 
AddHandler instance.Read, handler
Event Data

The event handler receives an argument of type SparkplugMetricReadEventArgs containing data related to this event. The following SparkplugMetricReadEventArgs properties provide information specific to this event.

PropertyDescription
The device associated with this event, if any. (Inherited from OpcLabs.EasySparkplug.OperationModel.SparkplugProducerProcessedEventArgs)
The edge node associated with this event. (Inherited from OpcLabs.EasySparkplug.OperationModel.SparkplugProducerProcessedEventArgs)
(Inherited from System.ComponentModel.HandledEventArgs)
The metric associated with this event. (Inherited from OpcLabs.EasySparkplug.OperationModel.SparkplugMetricProcessedEventArgs)
The name of the metric associated with this event. Empty if the event is not associated with a metric. (Inherited from OpcLabs.EasySparkplug.OperationModel.SparkplugProducerProcessedEventArgs)
The value and timestamps that is the result of the Sparkplug read.  
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