'DeclarationPublic Event Write As SparkplugMetricWriteEventHandler
'UsageDim instance As EasySparkplugEdgeNodeCore Dim handler As SparkplugMetricWriteEventHandler AddHandler instance.Write, handler
public event SparkplugMetricWriteEventHandler Write
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.
| Property | Description |
|---|---|
| Data | The value and timestamp that is the input of the Sparkplug write. |
| Device | The device associated with this event, if any. (Inherited from OpcLabs.EasySparkplug.OperationModel.SparkplugProducerProcessedEventArgs) |
| EdgeNode | The edge node associated with this event. (Inherited from OpcLabs.EasySparkplug.OperationModel.SparkplugProducerProcessedEventArgs) |
| Handled | (Inherited from System.ComponentModel.HandledEventArgs) |
| Metric | The metric associated with this event. (Inherited from OpcLabs.EasySparkplug.OperationModel.SparkplugMetricProcessedEventArgs) |
| MetricName | 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) |
| Result | 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