'Declaration<ExtensionAttribute()> Public Overloads Shared Function SubscribeDevicePayload( _ ByVal consumer As IEasySparkplugConsumer, _ ByVal deviceDescriptor As SparkplugDeviceDescriptor, _ ByVal callback As EasySparkplugPayloadNotificationEventHandler _ ) As Integer
'UsageDim consumer As IEasySparkplugConsumer Dim deviceDescriptor As SparkplugDeviceDescriptor Dim callback As EasySparkplugPayloadNotificationEventHandler Dim value As Integer value = IEasySparkplugConsumerExtension.SubscribeDevicePayload(consumer, deviceDescriptor, callback)
[Extension()] public static int SubscribeDevicePayload( IEasySparkplugConsumer consumer, SparkplugDeviceDescriptor deviceDescriptor, EasySparkplugPayloadNotificationEventHandler callback )
[Extension()] public: static int SubscribeDevicePayload( IEasySparkplugConsumer^ consumer, SparkplugDeviceDescriptor^ deviceDescriptor, EasySparkplugPayloadNotificationEventHandler^ callback )
Parameters
- consumer
- The consumer object that will perform the operation.
The value of this parameter cannot be
null(Nothingin Visual Basic). - deviceDescriptor
- The Sparkplug device descriptor.
The value of this parameter cannot be
null(Nothingin Visual Basic). - callback
- The callback to invoke for the notification.
The value of this parameter can be
null(Nothingin Visual Basic).