Explorar el Código

Server: Disable ServerTimestamp if manually set but not requested

Julius Pfrommer hace 5 años
padre
commit
45869a6a74
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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 */