We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df0e8df commit 810d656Copy full SHA for 810d656
1 file changed
Stack/Opc.Ua.Types/State/BaseVariableState.cs
@@ -1541,11 +1541,17 @@ protected override ServiceResult ReadValueAttribute(
1541
return StatusCodes.BadUserAccessDenied;
1542
}
1543
1544
- // update the timestamp on each read to reflect current time.
1545
- m_timestamp = DateTime.UtcNow;
+ // ensure a value timestamp exists.
+ if (m_timestamp == DateTime.MinValue)
1546
+ {
1547
+ sourceTimestamp = DateTime.UtcNow;
1548
+ }
1549
+ else
1550
1551
+ sourceTimestamp = m_timestamp;
1552
1553
1554
value = m_value;
- sourceTimestamp = m_timestamp;
1555
StatusCode statusCode = m_statusCode;
1556
1557
ServiceResult result = null;
0 commit comments