Connectivity Software User's Guide and Reference
ConstantValue Method (SparkplugMetricExtension)



OpcLabs.EasySparkplug Assembly > OpcLabs.EasySparkplug Namespace > SparkplugMetricExtension Class : ConstantValue Method
Modifies the metric to provide the specified constant value, non-writable.

The metric will not be writable.

The timestamp will be the current time of this method call.

Overload List
OverloadDescription
Makes a constant metric with given value type and value.  
Makes a constant metric with given value type code and value.  
Makes a constant metric with given Sparkplug data type and value.  
Makes a constant metric using generic-typed value.  
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

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