OPCDA分组修正

This commit is contained in:
2248356998 qq.com
2023-03-09 16:44:10 +08:00
parent 3a3dda3eb0
commit 92123c1150

View File

@@ -100,7 +100,7 @@ namespace ThingsGateway.Foundation.Adapter.OPCDA
{
int i = 0;
Dictionary<string, List<OpcItem>> tagDicts = tags.ToList().ConvertAll(o => new OpcItem(o)
).ChunkTrivialBetter(OPCNode.GroupSize).ToDictionary(a => "default" + i);
).ChunkTrivialBetter(OPCNode.GroupSize).ToDictionary(a => "default" + (i++));
Tags = tagDicts;
return tagDicts;
}