{"action":"closed","issue":{"url":"https://api.github.com/repos/open62541/open62541/issues/1249","repository_url":"https://api.github.com/repos/open62541/open62541","labels_url":"https://api.github.com/repos/open62541/open62541/issues/1249/labels{/name}","comments_url":"https://api.github.com/repos/open62541/open62541/issues/1249/comments","events_url":"https://api.github.com/repos/open62541/open62541/issues/1249/events","html_url":"https://github.com/open62541/open62541/issues/1249","id":265403572,"number":1249,"title":"How to create a custom DataType","user":{"login":"syvaren","id":27020375,"avatar_url":"https://avatars3.githubusercontent.com/u/27020375?v=4","gravatar_id":"","url":"https://api.github.com/users/syvaren","html_url":"https://github.com/syvaren","followers_url":"https://api.github.com/users/syvaren/followers","following_url":"https://api.github.com/users/syvaren/following{/other_user}","gists_url":"https://api.github.com/users/syvaren/gists{/gist_id}","starred_url":"https://api.github.com/users/syvaren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syvaren/subscriptions","organizations_url":"https://api.github.com/users/syvaren/orgs","repos_url":"https://api.github.com/users/syvaren/repos","events_url":"https://api.github.com/users/syvaren/events{/privacy}","received_events_url":"https://api.github.com/users/syvaren/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-10-13T20:01:35Z","updated_at":"2018-02-01T22:25:13Z","closed_at":"2018-02-01T22:25:13Z","author_association":"NONE","body":"Description\r\n===========\r\n\r\nI have created a custom datatype with the UA_Server_addDataTypeNode().  The type is a child of UA_NS0ID_ENUMERATION and has a property EnumStrings that is an array of type UA_NS0ID_LOCALIZEDTEXT.\r\n\r\nWhen I create a Variable node with a dataType of my custom datatype, it creates the node, but I get errors trying to set the value of this node.\r\n\r\nHow do I correctly write a value of my custom datatype to this node?\r\n\r\nUA_UInt32 index = 0;\r\nI have tried using UA_Variant_setScalar(&variant, &index, &UA_TYPES[UA_TYPES_UInt32]), but keep getting type mismatches.  I cannot seem to figure out how to set a value of my custom datatype.\r\n\r\nAny help is much appreciated.\r\n\r\nBackground Information / Reproduction Steps\r\n===========================================\r\n\r\n\r\n\r\nChecklist\r\n=========\r\nPlease provide the following information:\r\n\r\n - [x] open62541 Version (release number or git tag): .3\r\n - [ ] Other OPC UA SDKs used (client or server): \r\n - [x] Operating system: Debian 7\r\n - [ ] Logs (with `UA_LOGLEVEL` set as low as necessary) attached\r\n - [ ] Wireshark network dump attached\r\n - [ ] Self-contained code example attached\r\n - [ ] Critical issue\r\n"}}
{"actor":{"display_login":"Pro"}}