Browse Source

Server: Disable ServerTimestamp if manually set but not requested

Julius Pfrommer 5 years ago
parent
commit
45869a6a74
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/server/ua_services_attribute.c

+ 3 - 0
src/server/ua_services_attribute.c

@@ -362,6 +362,9 @@ ReadWithNode(const UA_Node *node, UA_Server *server, UA_Session *session,
             v->serverTimestamp = UA_DateTime_now();
             v->hasServerTimestamp = true;
         }
+    } else {
+        /* In case the ServerTimestamp has been set manually */
+        v->hasServerTimestamp = false;
     }
 
     /* Handle source time stamp */