fix(opcuamaster): 服务端时间戳选项在轮询模式下不生效
This commit is contained in:
@@ -215,9 +215,13 @@ public class OpcUaMaster : CollectBase
|
||||
{
|
||||
value = data.Item3;
|
||||
}
|
||||
var isGood = StatusCode.IsGood(data.Item2.StatusCode);
|
||||
|
||||
var time = data.Item2.SourceTimestamp;
|
||||
var isGood = StatusCode.IsGood(data.Item2.StatusCode);
|
||||
DateTime time = default;
|
||||
if (_driverProperties.SourceTimestampEnable)
|
||||
{
|
||||
time = data.Item2.SourceTimestamp.ToLocalTime();
|
||||
}
|
||||
if (isGood)
|
||||
{
|
||||
item.SetValue(value, time);
|
||||
|
Reference in New Issue
Block a user