Sfoglia il codice sorgente

commenting out the second namespace -- keep only ns0 for the moment

Stasik0 10 anni fa
parent
commit
e766d185c0
1 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. 3 3
      src/ua_application.c

+ 3 - 3
src/ua_application.c

@@ -163,11 +163,11 @@ void appMockup_init() {
 	namespaceArray->displayName = (UA_LocalizedText){{2,"EN"},{13, "NamespaceArray"}};
 	namespaceArray->description = (UA_LocalizedText){{2,"EN"},{13, "NamespaceArray"}};
 	//FIXME: can we avoid new here?
-	UA_Array_new((void**)&namespaceArray->value.data, 2, &UA_.types[UA_STRING]);
+	UA_Array_new((void**)&namespaceArray->value.data, 1, &UA_.types[UA_STRING]);
 	namespaceArray->value.vt = &UA_.types[UA_STRING];
-	namespaceArray->value.arrayLength = 2;
+	namespaceArray->value.arrayLength = 1;
 	UA_String_copycstring("http://opcfoundation.org/UA/",&((UA_String *)((namespaceArray->value).data))[0]);
-	UA_String_copycstring("http://localhost:16664/open62541/",&((UA_String *)(((namespaceArray)->value).data))[1]);
+	//UA_String_copycstring("http://localhost:16664/open62541/",&((UA_String *)(((namespaceArray)->value).data))[1]);
 	namespaceArray->dataType.encodingByte = UA_NODEIDTYPE_FOURBYTE;
 	namespaceArray->dataType.identifier.numeric = UA_STRING_NS0;
 	namespaceArray->valueRank = 1;