Connectivity Software User's Guide and Reference
SparkplugDevice Class Methods


OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug Namespace : SparkplugDevice Class

For a list of all members of this type, see SparkplugDevice members.

Public Methods
 NameDescription
Public MethodAdds a Sparkplug metric to the edge node.  
Public MethodOverridden.   
Public Methodstatic (Shared in Visual Basic)Creates and returns a device (with given device ID) in the specified edge node.  
Public MethodCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from System.MarshalByRefObject)
Public MethodIndicates that the data source connection for the edge node or device has failed.  
Public MethodIndicates that the data source connection for the edge node or device has been successfully established.  
Public MethodIndicates that the data source connection for the edge node or device has been successfully disconnected.  
Public MethodOverloaded.  (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Public Method (Inherited from object)
Public MethodFreezes the device, preventing it from being considered alive.  
Public Method  
Public MethodServes as the default hash function. (Inherited from object)
Public MethodRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodOverridden.   
Public Method (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Public MethodOverridden.   
Public MethodGets the System.Type of the current instance. (Inherited from object)
Public MethodObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from System.MarshalByRefObject)
Public MethodLocks the publishing of metric data changes, so that they are not immediately published.  
Public MethodIn manual data source connection mode, instructs the producer to connect to the data source.  
Public MethodIn manual data source connection mode, instructs the producer to disconnect from the data source.  
Public MethodPerforms the periodic polling of data from the data source, and publishes the data payload.  
Public MethodPublishes the specified data payload to the Sparkplug system (MQTT broker).  
Public Method (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Public MethodThaws the device, allowing it to be considered alive again.  
Public MethodOverridden.   
Public MethodPublishes any assembled metric data changes, and unlocks the publishing.  
Public MethodOverloaded. Defines a generalized method that classes must implement to create type-specific method for determining value equality of instances. Determines whether this instance has the same value as a given other instance. (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Public Method (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Top
Protected Methods
 NameDescription
Protected Method (Inherited from System.ComponentModel.Component)
Protected MethodOverloaded. Creates a shallow copy of the current System.MarshalByRefObject object. (Inherited from System.MarshalByRefObject)
Protected MethodRaises the ApplicationOnlineChanged event.  
Protected MethodRaises the ConnectDataSource event.  
Protected MethodInfrastructure. (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Protected MethodRaises the DataSourceConditionChanged event.  
Protected MethodRaises the DisconnectDataSource event.  
Protected MethodRaises the IsAliveChanged event.  
Protected MethodRaises the IsFrozenChanged event.  
Protected MethodRaises the MetricNotification event.  
Protected MethodRaises the PayloadNotification event.  
Protected MethodRaises the Poll event.  
Protected MethodRaises the ProducerOnlineChanged event.  
Protected MethodRaises the PublishingError event.  
Protected MethodRaises the Read event.  
Protected MethodRaises the Starting event.  
Protected MethodRaises the Stopped event.  
Protected MethodRaises the SystemConnectionStateChanged event.  
Protected MethodRaises the Write event.  
Protected MethodRaises the WriteError event.  
Protected MethodInfrastructure. (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Protected MethodInfrastructure. (Inherited from OpcLabs.BaseLib.Widgets.Widget)
Top
Extension Methods
 NameDescription
Public Extension MethodRemoves all metrics from the device.
Public Extension MethodDefines an action to be performed for connecting the edge node or device to a data source.
Public Extension MethodOverloaded. Indicates that the data source connection for the edge node or device has failed.
Public Extension MethodDefines an action to be performed for disconnecting the edge node or device from a data source.
Public Extension MethodLocks the publishing of metric data changes and returns an object that unlocks the publishing upon its disposal.
Public Extension MethodGets the Sparkplug metric with the specified metric name from the Sparkplug edge node or device.
Public Extension MethodPerforms a rebirth of the device.
Public Extension MethodDefines a function that will be called when the producer is polled for data.
Public Extension MethodReads from a Sparkplug metric with the specified metric name from the Sparkplug edge node or device and returns the Sparkplug data object.
Public Extension MethodReads from a Sparkplug metric with the specified metric name from the Sparkplug edge node or device and returns the metric value.
Public Extension MethodSets the arbitrary object associated with the node.
Public Extension MethodSets the arbitrary object associated with the device.
Public Extension MethodWrites Sparkplug data to a Sparkplug metric with the specified metric name.
Public Extension MethodWrites a value to a Sparkplug metric with the specified metric name.
Top
See Also

Reference

SparkplugDevice Class
OpcLabs.EasySparkplug Namespace