{"action":"created","issue":{"url":"https://api.github.com/repos/acplt/open62541/issues/306","labels_url":"https://api.github.com/repos/acplt/open62541/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/acplt/open62541/issues/306/comments","events_url":"https://api.github.com/repos/acplt/open62541/issues/306/events","html_url":"https://github.com/acplt/open62541/issues/306","id":98123715,"number":306,"title":"request for client and server API examples - cmake with BUILD_EXAMPLES configuration doesn't build","user":{"login":"martina-felber","id":13520669,"avatar_url":"https://avatars.githubusercontent.com/u/13520669?v=3","gravatar_id":"","url":"https://api.github.com/users/martina-felber","html_url":"https://github.com/martina-felber","followers_url":"https://api.github.com/users/martina-felber/followers","following_url":"https://api.github.com/users/martina-felber/following{/other_user}","gists_url":"https://api.github.com/users/martina-felber/gists{/gist_id}","starred_url":"https://api.github.com/users/martina-felber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martina-felber/subscriptions","organizations_url":"https://api.github.com/users/martina-felber/orgs","repos_url":"https://api.github.com/users/martina-felber/repos","events_url":"https://api.github.com/users/martina-felber/events{/privacy}","received_events_url":"https://api.github.com/users/martina-felber/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-30T09:33:00Z","updated_at":"2015-08-03T09:00:56Z","closed_at":null,"body":"Hello!\r\n\r\nI am looking for more examples showing the usage of your client and server API. Are there more examples available than the provided ones in the /examples directory?\r\n\r\nI thought that cmake would generate some examples with the option BUILD_EXAMPLES enabled. \r\nI am using Windows 7, configured the MinGW makefile option and enabled following configurations: \r\nBUILD_EXAMPLECLIENT, BUILD_EXAMPLESERVER, BUILD_EXAMPLES, ENABLE_ADDNODES, ENABLE_AMALGAMATION, ENABLE_METHODCALLS, ENABLE_SUBSCRIPTIONS\r\nand got following errors:\r\n\r\n[ 80%] Building C object examples/CMakeFiles/server_method.dir/server_method.c.o\r\nbj\r\nD:\\Projekte\\OPC\\open62541-master_examples\\open62541-master\\examples\\server_metho\r\nd.c: In function 'main':\r\nD:\\Projekte\\OPC\\open62541-master_examples\\open62541-master\\examples\\server_metho\r\nd.c:70:29: error: too few arguments to function 'UA_Server_addMethodNode'\r\n                             &helloWorldMethod, 1, &inputArguments, 1, &outputAr\r\nguments);\r\n                             ^\r\nIn file included from D:\\Projekte\\OPC\\open62541-master_examples\\open62541-master\r\n\\examples\\server_method.c:15:0:\r\nD:/Projekte/OPC/open62541-master_examples/open62541-master/build/open62541.h:389\r\n5:1: note: declared here\r\n UA_Server_addMethodNode(UA_Server *server, const UA_QualifiedName browseName, U\r\nA_NodeId nodeId,\r\n ^\r\nexamples\\CMakeFiles\\server_method.dir\\build.make:62: recipe for target 'examples\r\n/CMakeFiles/server_method.dir/server_method.c.obj' failed\r\nmingw32-make[2]: *** [examples/CMakeFiles/server_method.dir/server_method.c.obj]\r\n Error 1\r\nCMakeFiles\\Makefile2:349: recipe for target 'examples/CMakeFiles/server_method.d\r\nir/all' failed\r\nmingw32-make[1]: *** [examples/CMakeFiles/server_method.dir/all] Error 2\r\nMakefile:82: recipe for target 'all' failed\r\nmingw32-make: *** [all] Error 2\r\n\r\nI saw your example to add an int32 value (the answer) and arrays, scalars and matrices with every built-in datatype. \r\nOn the server side I would like to know how to add more complex variables, than the built-in types and how to define the VariableTypes/Objecttypes/Foldertypes. I thought of a simple test set up like this:\r\n\r\nFoldertype\r\nServer\r\nMachine 1\r\n      Parameter\r\n            Temperature\r\n            Humidity\r\n            Speed\r\n            Something Else\r\n            ...\r\n      Miscellaneous\r\n            ...\r\n\r\nMachine 2\r\n      Parameter\r\n            Temperature\r\n            Humidity\r\n            Speed\r\n            Something Else\r\n            ...\r\n      Miscellaneous\r\n            ...\r\n\r\nMachine 3\r\n      Different Params\r\n      SensorValues\r\n            Sensor 1\r\n                  Value XY\r\n            Sensor 2\r\n\r\nHow to define a common Objecttype for Machine 1 and 2's equal variables?\r\n\r\nOn the client side I could list the nodes Foldertype, Server, Machine 1, Machine 2 and Machine 3. Thanks for your \"Browsing nodes in objects folder\" example using function UA_Client_browse. In order to discover i.e. the nodes of machine 1, I had to start another browse request with the nodeID of machine 1 and got the \"Parameter\" object. Is there any easier way to get every node of a specific branch? I tried to use BrowseNext and TranslateBrowsePathsToNodeIds, but couldn't get it working without an example. \r\n\r\nMany thanks for your help\r\nBest regards\r\nMartina\r\n\r\n\r\n\r\n\r\n\r\n      \r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/acplt/open62541/issues/comments/127169564","html_url":"https://github.com/acplt/open62541/issues/306#issuecomment-127169564","issue_url":"https://api.github.com/repos/acplt/open62541/issues/306","id":127169564,"user":{"login":"Stasik0","id":469170,"avatar_url":"https://avatars.githubusercontent.com/u/469170?v=3","gravatar_id":"","url":"https://api.github.com/users/Stasik0","html_url":"https://github.com/Stasik0","followers_url":"https://api.github.com/users/Stasik0/followers","following_url":"https://api.github.com/users/Stasik0/following{/other_user}","gists_url":"https://api.github.com/users/Stasik0/gists{/gist_id}","starred_url":"https://api.github.com/users/Stasik0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stasik0/subscriptions","organizations_url":"https://api.github.com/users/Stasik0/orgs","repos_url":"https://api.github.com/users/Stasik0/repos","events_url":"https://api.github.com/users/Stasik0/events{/privacy}","received_events_url":"https://api.github.com/users/Stasik0/received_events","type":"User","site_admin":false},"created_at":"2015-08-03T09:00:56Z","updated_at":"2015-08-03T09:00:56Z","body":"Is it working with UaExpert?\n\n> Am 03.08.2015 um 09:50 schrieb martina-felber <notifications@github.com>:\n> \n> Hello!\n> \n> I checked out the current master code on Friday and today and tried several times, but I couldn't get the methodcalls working. The response of the client is always: \n> Method call was unsuccessfull, and 80750000 returned values available.\n> the return value is UA_STATUSCODE_BADMETHODINVALID as @ichrispa already said.\n> and the server doesn't write \"getMonitoredItems was called\".\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}