Ver código fonte

Fixed server.cpp, still using old addVariable method (travis 3184 failed).

ichrispa 9 anos atrás
pai
commit
39c508f886
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      examples/server.cpp

+ 1 - 1
examples/server.cpp

@@ -54,7 +54,7 @@ int main() {
     UA_NodeId parentReferenceNodeId = UA_NODEID_NUMERIC(0, UA_NS0ID_ORGANIZES);
     UA_Server_addVariableNode(server, myIntegerNodeId, parentNodeId,
                               parentReferenceNodeId, myIntegerName,
-                              UA_NODEID_NULL, attr, NULL);
+                              UA_NODEID_NULL, attr, NULL, NULL);
 
     /* allocations on the heap need to be freed */
     UA_VariableAttributes_deleteMembers(&attr);