Explorar el Código

State is component of ServerState now

Stasik0 hace 10 años
padre
commit
97a5da8bbc
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      src/server/ua_server.c

+ 3 - 0
src/server/ua_server.c

@@ -645,5 +645,8 @@ UA_Server * UA_Server_new(void) {
     state->value.storage.data.dataPtr = stateEnum; // points into the other object.
     state->value.storageType = UA_VARIANT_DATA;
     UA_NodeStore_insert(server->nodestore, (UA_Node*)state, UA_NULL);
+    ADDREFERENCE(UA_NODEID_STATIC(0, UA_NS0ID_SERVER_SERVERSTATUS), UA_NODEID_STATIC(0, UA_NS0ID_HASCOMPONENT),
+                     UA_EXPANDEDNODEID_STATIC(0, UA_NS0ID_SERVER_SERVERSTATUS_STATE));
+
     return server;
 }