Skip to content

Clients unable to parse published propertyset #80

@oceanic76

Description

@oceanic76

At birth or ndata the published propertyset type of a SparkplugNet.VersionB.SparkplugNode cannot be parsed by MQTT.fx (Sparkplug Decoder) or Node-RED Sparkplug node . Tried 1.3.4 and 1.3.3 using both SparkplugMqttProtocolVersions and SparkplugSpecificationVersions. The objects appear okay up to the serialization and then I cannot tell if it is serialized correctly.

Code to build Metric object:
var ps = new PropertySet();
ps.Keys.Add("A");
var aValue = new PropertyValue(DataType.String, "testValue");
ps.Values.Add(aValue);
var m1 = new Metric("TestPropertySet", DataType.PropertySet, ps);

Node-RED: "Unable to decode Unknown message. the error is : TypeError: Cannot read properties of undefined (reading 'keys')"

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions