OPCDA订阅传出的列表中NAME错误修正。 (#36)

This commit is contained in:
BenjaminChenGH 2022-12-13 10:27:01 +08:00 committed by GitHub
parent 29f022754d
commit 818ecdd2f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ namespace Automation.OPCClient
{
list.Add(new OPCChangeModel()
{
Name = this.clientNameList[(int)ClientHandles.GetValue(i)],
Name = this.clientNameList[(int)ClientHandles.GetValue(i) - 1],
Value = ItemValues.GetValue(i),
Quality = (TagQuality)Qualities.GetValue(i),
TimeStamp = (DateTime)TimeStamps.GetValue(i),