Connectivity Software User's Guide and Reference
PayloadNotification Event (IEasySparkplugNotificationEvents)



OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug Namespace > IEasySparkplugNotificationEvents Interface : PayloadNotification Event
Raised for notifications related to subscribed Sparkplug payload.
Syntax
'Declaration
 
Event PayloadNotification As EasySparkplugPayloadNotificationEventHandler
'Usage
 
Dim instance As IEasySparkplugNotificationEvents
Dim handler As EasySparkplugPayloadNotificationEventHandler
 
AddHandler instance.PayloadNotification, handler
Event Data

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

PropertyDescription
The Sparkplug payload subscription arguments of the subscription that generated this notification.  
The client ID (of the broker connection) associated with this notification. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
The Sparkplug component types associated with this notification. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
The Sparkplug device ID associated with this notification. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
Diagnostics information (such as warnings) assembled during the operation. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
Count of diagnostic information elements assembled during the operation. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
Textual summary of diagnostics information, one message per line. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
The Sparkplug edge node ID associated with this notification. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
Gets or sets the error ID of the error. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
Gets or sets a message that describes the current exception. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
The first line of the error message. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
Gets the current exception. Contains null reference when no exception. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
The Sparkplug group ID associated with this notification. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
Determines whether this notification delivers data with it. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
Indicates whether the notification is synthesized. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
A normalized OpcLabs.BaseLib.OperationModel.OperationEventArgs.Diagnostics collection. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
A normalized OpcLabs.BaseLib.OperationModel.OperationEventArgs.Exception object, or null if there was no error. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
The Sparkplug notification type of this notification. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
The payload delivered by this notification, if available.  
Gets indication whether the operation has succeeded. (Inherited from OpcLabs.BaseLib.OperationModel.OperationEventArgs)
The effective Sparkplug system descriptor of the component that generated the notification. (Inherited from OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs)
Remarks

On the Device (SparkplugDevice), this event is raised when a device command (DCMD) is received from the Host Application. On the Edge Node (EasySparkplugEdgeNodeCore), this event is raised when an edge node command (NCMD) is received from the Host Application, and also for all commands received by the devices that belong to the edge node. You can use the OpcLabs.EasySparkplug.OperationModel.EasySparkplugNotificationEventArgs.ComponentTypes property to distinguish between the device and edge node commands.

On the consumer (EasySparkplugConsumerCore), this event is raised for payloads subscribed through the IEasySparkplugConsumer.SubscribePayload method (or extension methods that rely on it).

 

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