Skip to content

Commit

Permalink
Revert "Auto set ServerTimestamp if value is written" (#521)
Browse files Browse the repository at this point in the history
This reverts commit 0a1cce0.

#461 causes connection problems. See #520
  • Loading branch information
Fabian Beitler authored Mar 30, 2021
1 parent 0a1cce0 commit 80a4cc2
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions asyncua/server/address_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ async def write(self, params, user=User(role=UserRole.Admin)):
ua.ua_binary.test_bit(ual.Value.Value, ua.AccessLevel.CurrentWrite):
res.append(ua.StatusCode(ua.StatusCodes.BadUserAccessDenied))
continue
if not writevalue.Value.ServerTimestamp:
writevalue.Value.ServerTimestamp = datetime.utcnow()
res.append(
await self._aspace.write_attribute_value(writevalue.NodeId, writevalue.AttributeId, writevalue.Value))
return res
Expand Down

0 comments on commit 80a4cc2

Please sign in to comment.