{"action":"opened","issue":{"url":"https://api.github.com/repos/node-opcua/node-opcua/issues/120","labels_url":"https://api.github.com/repos/node-opcua/node-opcua/issues/120/labels{/name}","comments_url":"https://api.github.com/repos/node-opcua/node-opcua/issues/120/comments","events_url":"https://api.github.com/repos/node-opcua/node-opcua/issues/120/events","html_url":"https://github.com/node-opcua/node-opcua/issues/120","id":107356845,"number":120,"title":"make readVariableValue more consistent ","user":{"login":"erossignon","id":680220,"avatar_url":"https://avatars.githubusercontent.com/u/680220?v=3","gravatar_id":"","url":"https://api.github.com/users/erossignon","html_url":"https://github.com/erossignon","followers_url":"https://api.github.com/users/erossignon/followers","following_url":"https://api.github.com/users/erossignon/following{/other_user}","gists_url":"https://api.github.com/users/erossignon/gists{/gist_id}","starred_url":"https://api.github.com/users/erossignon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erossignon/subscriptions","organizations_url":"https://api.github.com/users/erossignon/orgs","repos_url":"https://api.github.com/users/erossignon/repos","events_url":"https://api.github.com/users/erossignon/events{/privacy}","received_events_url":"https://api.github.com/users/erossignon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-19T21:26:29Z","updated_at":"2015-09-19T21:26:29Z","closed_at":null,"body":"At this time, ClientSession#readVariableValue has a awkward behavior as the callback function is fed with a array of DataValue even though there is a single nodeId Value to read.\r\n\r\nfor instance \r\n```\r\nsession.readVaraibleValue(\"ns=0;i=2258\", function(err,dataValues) {\r\n    console.log(dataValues[0]);\r\n});\r\n```\r\n\r\nI propose the following behavior:\r\n \r\n### read a single node :\r\n\r\n```javascript\r\n   session.readVariableValue(\"ns=0;i=2257\",function(err,dataValue) {\r\n      if (!err) {\r\n         console.log(dataValue.toString());\r\n      }\r\n   });\r\n```\r\n### read a array of nodes\r\n\r\n```javascript\r\n   session.readVariableValue([\"ns=0;i=2257\",\"ns=0;i=2258\"],function(err,dataValues) {\r\n      if (!err) {\r\n         console.log(dataValues[0].toString());\r\n         console.log(dataValues[1].toString());\r\n      }\r\n   });\r\n```\r\n\r\n\r\n\r\n "}}