Sfoglia il codice sorgente

fix #780; include complete build info in the server state

Julius Pfrommer 8 anni fa
parent
commit
6a6ebf3455
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/server/ua_server.c

+ 1 - 0
src/server/ua_server.c

@@ -231,6 +231,7 @@ readStatus(void *handle, const UA_NodeId nodeid, UA_Boolean sourceTimeStamp,
     status->currentTime = UA_DateTime_now();
     status->state = UA_SERVERSTATE_RUNNING;
     status->secondsTillShutdown = 0;
+    UA_BuildInfo_copy(&server->config.buildInfo, &status->buildInfo);
 
     value->value.type = &UA_TYPES[UA_TYPES_SERVERSTATUSDATATYPE];
     value->value.arrayLength = 0;