{"action":"created","issue":{"url":"https://api.github.com/repos/acplt/open62541/issues/184","labels_url":"https://api.github.com/repos/acplt/open62541/issues/184/labels{/name}","comments_url":"https://api.github.com/repos/acplt/open62541/issues/184/comments","events_url":"https://api.github.com/repos/acplt/open62541/issues/184/events","html_url":"https://github.com/acplt/open62541/issues/184","id":59020815,"number":184,"title":"The problem in new master branch","user":{"login":"kadomcev","id":11058275,"avatar_url":"https://avatars.githubusercontent.com/u/11058275?v=3","gravatar_id":"","url":"https://api.github.com/users/kadomcev","html_url":"https://github.com/kadomcev","followers_url":"https://api.github.com/users/kadomcev/followers","following_url":"https://api.github.com/users/kadomcev/following{/other_user}","gists_url":"https://api.github.com/users/kadomcev/gists{/gist_id}","starred_url":"https://api.github.com/users/kadomcev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadomcev/subscriptions","organizations_url":"https://api.github.com/users/kadomcev/orgs","repos_url":"https://api.github.com/users/kadomcev/repos","events_url":"https://api.github.com/users/kadomcev/events{/privacy}","received_events_url":"https://api.github.com/users/kadomcev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-02-26T05:17:25Z","updated_at":"2015-02-26T06:19:30Z","closed_at":null,"body":"Function UA_Server_addNode not add node in server.\r\n\r\nUA_Int32 *myInteger = UA_Int32_new();\r\n*myInteger = 42;\r\n\r\nchar str[15];\r\nsprintf(str,\"Byte\");\r\nUA_VariableNode *tmpNode = UA_VariableNode_new();\r\nUA_QualifiedName_copycstring(str,&tmpNode->browseName);\r\nUA_LocalizedText_copycstring(str,&tmpNode->displayName);\r\n\r\ntmpNode->nodeId.namespaceIndex = 2;\r\nUA_String_copycstring(\"Demo\", &tmpNode->nodeId.identifier.string);\r\ntmpNode->nodeId.identifierType = UA_NODEIDTYPE_STRING;\r\ntmpNode->nodeClass = UA_NODECLASS_VARIABLE;\r\ntmpNode->value.type = &UA_TYPES[UA_TYPES_INT32];\r\ntmpNode->value.storage.data.dataPtr = myInteger;\r\ntmpNode->value.storageType = UA_VARIANT_DATA_NODELETE;\r\ntmpNode->value.storage.data.arrayLength = 1;\r\n\r\nUA_NodeId objects, organizes;\r\nUA_NODEID_ASSIGN(objects, UA_NS0ID_OBJECTSFOLDER, 0);\r\nUA_NODEID_ASSIGN(organizes, UA_NS0ID_ORGANIZES, 0);\r\nUA_Server_addNode(server, (UA_Node*)&tmpNode, (const UA_ExpandedNodeId *)&objects, &organizes);\r\n\r\nWhat is the problem?"},"comment":{"url":"https://api.github.com/repos/acplt/open62541/issues/comments/76128207","html_url":"https://github.com/acplt/open62541/issues/184#issuecomment-76128207","issue_url":"https://api.github.com/repos/acplt/open62541/issues/184","id":76128207,"user":{"login":"kadomcev","id":11058275,"avatar_url":"https://avatars.githubusercontent.com/u/11058275?v=3","gravatar_id":"","url":"https://api.github.com/users/kadomcev","html_url":"https://github.com/kadomcev","followers_url":"https://api.github.com/users/kadomcev/followers","following_url":"https://api.github.com/users/kadomcev/following{/other_user}","gists_url":"https://api.github.com/users/kadomcev/gists{/gist_id}","starred_url":"https://api.github.com/users/kadomcev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kadomcev/subscriptions","organizations_url":"https://api.github.com/users/kadomcev/orgs","repos_url":"https://api.github.com/users/kadomcev/repos","events_url":"https://api.github.com/users/kadomcev/events{/privacy}","received_events_url":"https://api.github.com/users/kadomcev/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T06:19:30Z","updated_at":"2015-02-26T06:19:30Z","body":"UA_Int32 *myInteger = UA_Int32_new();\r\n*myInteger = 42;\r\n\r\nchar str[15];\r\nsprintf(str,\"Byte\");\r\nUA_VariableNode *tmpNode = UA_VariableNode_new();\r\nUA_QualifiedName_copycstring(str,&tmpNode->browseName);\r\nUA_LocalizedText_copycstring(str,&tmpNode->displayName);\r\n\r\ntmpNode->nodeId.namespaceIndex = 2;\r\nUA_String_copycstring(\"Demo\", &tmpNode->nodeId.identifier.string);\r\ntmpNode->nodeId.identifierType = UA_NODEIDTYPE_STRING;\r\ntmpNode->nodeClass = UA_NODECLASS_VARIABLE;\r\ntmpNode->value.type = &UA_TYPES[UA_TYPES_INT32];\r\ntmpNode->value.storage.data.dataPtr = myInteger;\r\ntmpNode->value.storageType = UA_VARIANT_DATA_NODELETE;\r\ntmpNode->value.storage.data.arrayLength = 1;\r\n\r\nUA_NodeId reftype;\r\nUA_ExpandedNodeId parentnode;\r\n\r\nparentnode.nodeId.namespaceIndex = 0;\r\nparentnode.nodeId.identifierType = UA_NODEIDTYPE_NUMERIC;\r\nparentnode.nodeId.identifier.numeric = UA_NS0ID_OBJECTSFOLDER;\r\nparentnode.namespaceUri.data = UA_NULL;\r\nparentnode.namespaceUri.length = -1;\r\nparentnode.serverIndex = 0;\r\n\r\nreftype.namespaceIndex = 0;\r\nreftype.identifierType = UA_NODEIDTYPE_NUMERIC;\r\nreftype.identifier.numeric = UA_NS0ID_ORGANIZES;\r\n\r\nUA_AddNodesResult res = UA_Server_addNode(server, (UA_Node*)&tmpNode, &parentnode, &reftype);\r\nprintf(\"statusCode = %08X\\n\",res.statusCode);\r\n\r\nstatusCode = 80030000 // Not enough memory to complete the operation.\r\nListening for TCP connections on 0.0.0.0:16664\r\ntestcallback"}}