fixed a regressing regarding application uri

TODO: we still need to set it centralized
This commit is contained in:
Stasik0
2015-04-19 16:58:12 +02:00
parent 59d9945576
commit 8065259008
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ int main(int argc, char** argv) {
UA_Server_setServerCertificate(server, certificate);
UA_ByteString_deleteMembers(&certificate);
UA_Server_addNetworkLayer(server, ServerNetworkLayerTCP_new(UA_ConnectionConfig_standard, 16664));
UA_UInt16 nsIndex = UA_Server_addNamespace(server, "myApplicationNamespace");
UA_UInt16 nsIndex = UA_Server_addNamespace(server, "urn:unconfigured:open62541:open62541Server");
// print the status every 2 sec
UA_WorkItem work = {.type = UA_WORKITEMTYPE_METHODCALL,
+1 -1
View File
@@ -66,7 +66,7 @@ int main(int argc, char** argv) {
UA_Server_setServerCertificate(server, certificate);
UA_ByteString_deleteMembers(&certificate);
UA_Server_addNetworkLayer(server, ServerNetworkLayerTCP_new(UA_ConnectionConfig_standard, 16664));
UA_Server_addNamespace(server, "myApplicationNamespace");
UA_Server_addNamespace(server, "urn:unconfigured:open62541:open62541Server");
UA_WorkItem work = {.type = UA_WORKITEMTYPE_METHODCALL, .work.methodCall = {.method = testCallback, .data = NULL} };
UA_Server_addRepeatedWorkItem(server, &work, 20000000, NULL); // call every 2 sec