Connectivity Software User's Guide and Reference
SparkplugDevice Class
Members 



OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug Namespace : SparkplugDevice Class
Represents a Sparkplug device (a device/sensor connected to the Sparkplug edge node).
Syntax
'Usage
 
Dim instance As SparkplugDevice
Remarks

A Sparkplug device is typically a sensor, actuator, or other endpoint that communicates its data through a Sparkplug edge node. Devices do not connect directly to the MQTT broker; instead, they connect to an edge node, which aggregates and forwards their data using the Sparkplug protocol. The edge node manages the lifecycle, state, and data of its devices, ensuring reliable and structured communication with the broker.

Note that the presence of one or more devices in the Sparkplug edge node is optional. The edge node may have no devices, and only expose metric on the edge node itself.

The Sparkplug device ID is stored in the DeviceId property. The collection of Sparkplug metrics that this device publishes is contained in the Metrics property of the device. You can add or remove your metrics in this collection.

 

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.

Inheritance Hierarchy

System.Object
   System.MarshalByRefObject
      System.ComponentModel.Component
         OpcLabs.BaseLib.Widgets.Widget
            OpcLabs.EasySparkplug.SparkplugDevice

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