I am looking to read and write a dataset via sparkplug B. I think I have parsed the spec correctly to generate a sparkplug b payload. Using MQTTX, I am able to parse sparkplug b payload and when I capture the dataset payload it is being fully represented but the dataset does not update in ignition.
I hope someone with experience with this can assist me figuring out what I am doing wrong. I know that I can update other tags via sparkplug b, but with datasets I have hit a wall.
I am publishing to this topic which works for other tags
spBv1.0/Injection-H1/DCMD/MES/Zima
I am testing this from node-red, I have an inject node with msg.payload set to the following
{
"metrics": [
{
"name": "Job/BOM",
"datatype": 16,
"dataset_value": {
"num_of_columns": 5,
"columns": [
"Item",
"Quantity",
"Unit of Measure",
"Operation",
"Type"
],
"types": [
12,
9,
12,
2,
12
],
"rows": [
{
"elements": [
{
"string_value": "Item Code"
},
{
"float_value": 1.588
},
{
"string_value": "LB"
},
{
"int_value": 10
},
{
"string_value": "RESN"
}
]
}
]
}
}
]
}
Any assistance would be appreciated.