Explorar el Código

add complete type information to the redundancysupport variable

Julius Pfrommer hace 8 años
padre
commit
03e272a01b
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      src/server/ua_server.c

+ 2 - 0
src/server/ua_server.c

@@ -1313,6 +1313,8 @@ UA_Server * UA_Server_new(const UA_ServerConfig config) {
     UA_VariableNode *redundancySupport = UA_NodeStore_newVariableNode();
     copyNames((UA_Node*)redundancySupport, "RedundancySupport");
     redundancySupport->nodeId = UA_NODEID_NUMERIC(0, UA_NS0ID_SERVER_SERVERREDUNDANCY_REDUNDANCYSUPPORT);
+    redundancySupport->valueRank = -1;
+    redundancySupport->dataType = UA_TYPES[UA_TYPES_INT32].typeId;
     //FIXME: enum is needed for type letting it uninitialized for now
     UA_Variant_setScalar(&redundancySupport->value.data.value.value, UA_Int32_new(),
                          &UA_TYPES[UA_TYPES_INT32]);