Connectivity Software User's Guide and Reference
Write Event (SparkplugDevice)



OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug Namespace > SparkplugDevice Class : Write Event
Raised for supplying the Sparkplug metric write data.
Syntax
'Declaration
 
Public Event Write As SparkplugMetricWriteEventHandler
'Usage
 
Dim instance As SparkplugDevice
Dim handler As SparkplugMetricWriteEventHandler
 
AddHandler instance.Write, handler
public:
event SparkplugMetricWriteEventHandler^ Write
Event Data

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

PropertyDescription
The value and timestamp that is the input of the Sparkplug write.  
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)
Indicates whether the Sparkplug write has been successful.  
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