Explorar o código

reflecting current code-state(cherry picked from commit 02965da195b11950929406c6204ca5af7a3b2958)

Sten %!s(int64=10) %!d(string=hai) anos
pai
achega
9ec47e3c46
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -50,7 +50,7 @@ int main(int argc, char** argv)
     UA_Server_setLogger(server, Logger_Stdout_new());
     UA_Server_setLogger(server, Logger_Stdout_new());
     UA_Server_addNetworkLayer(server,
     UA_Server_addNetworkLayer(server,
         ServerNetworkLayerTCP_new(UA_ConnectionConfig_standard, PORT));
         ServerNetworkLayerTCP_new(UA_ConnectionConfig_standard, PORT));
-    UA_UInt16 nsIndex = UA_Server_addNamespace(server, "myApplicationNamespace");
+    UA_UInt16 nsIndex = UA_Server_addNamespace(server, UA_ServerConfig_standard.Application_applicationURI);
 
 
     /* add a variable node */
     /* add a variable node */
     UA_Variant *myIntegerVariant = UA_Variant_new();
     UA_Variant *myIntegerVariant = UA_Variant_new();