You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per Sparkplug specification "Multiple metrics can be supplied in a single NCMD message". This means when Host Application publish NCMD with multiple metrics then Edge Node should receive all metrics in the single event. At the moment, NodeCommandReceived event only receive single metrics as a argument.
Existing Code
It should be like below to handle multiple metrics
The text was updated successfully, but these errors were encountered:
adityashahazilen
changed the title
NCDM Event only support single metric
NCMD Event only receive single metric
Feb 26, 2024
The SparkPlugNode rises an event for each Metric received in the NCMD message:
caseSparkplugMessageType.NodeCommand:foreach(var metric in convertedPayloadVersionB.Metrics){if(metric is VersionBData.Metric convertedMetric){awaitthis.FireNodeCommandReceivedAsync(convertedMetric);}}break;
But I do prefer the idea of a single event with all the metrics.
As per Sparkplug specification "Multiple metrics can be supplied in a single NCMD message". This means when Host Application publish NCMD with multiple metrics then Edge Node should receive all metrics in the single event. At the moment, NodeCommandReceived event only receive single metrics as a argument.
Existing Code
It should be like below to handle multiple metrics
The text was updated successfully, but these errors were encountered: