server/handlerwrappers/default.rb in cpee-1.4.30 vs server/handlerwrappers/default.rb in cpee-1.4.31
- old
+ new
@@ -72,11 +72,11 @@
par = $5
url = 'opc.tcp://' + $1
client = OPCUA::Client.new(url)
if (node = client.get ns.to_i, nid)
(parameters[:arguments] || [→(:name => 'value', :value => par)] || []).each do |ele|
- what = CPEE::ValueHelper::parse(ele.value)
+ what = CPEE::ValueHelper::parse_extended(ele.value)
node.value = what
result = what
end
else
raise 'invalid nodeid'
@@ -90,10 +90,10 @@
url = 'opc.tcp://' + $1
client = OPCUA::Client.new(url)
if (node = client.get ns.to_i, nid)
params = []
(parameters[:arguments] || []).each do |ele|
- what = CPEE::ValueHelper::parse(ele.value)
+ what = CPEE::ValueHelper::parse_extended(ele.value)
params << what
end
result = node.call *params
else
raise 'invalid nodeid'