SparkplugNet icon indicating copy to clipboard operation
SparkplugNet copied to clipboard

Metric with null value (IsNull) do not survice decoding

Open simmarn opened this issue 3 months ago • 1 comments

How to reproduce.

  1. Create one EdgeNode and one Application
  2. Send NDATA or DDATA from EdgeNode with metric containing a null value. For example a string metric with value null. At inspection of the protobuf coded payload data IsNull = true, which is correct
  3. At reception in Application the metric value is string.Empty not null and IsNull = false. THIS IS THE FAULT.

Please release a fixed version as our interface depends on null values being passed correctly. We would also like to get in touch to discuss how to support your work with SparkplugNet.

simmarn avatar Oct 25 '25 13:10 simmarn

I created a PR: https://github.com/SeppPenner/SparkplugNet/pull/123

simmarn avatar Oct 25 '25 13:10 simmarn