Hi,
So I changed the copas.addthread function.
Now when I send % I see in the alerts
there was an error/usr/share/lua/genohm-scada.lua:0: bad argument #2 to 'format' (no value)
Any ideas?
Thanks,
Roger
So I changed the copas.addthread function.
Code:
copas.addthread(function()
while true do
local resp,err = copas.receive(skt,'*l')
if not resp then
alert("Jandy Receive error: ", err)
copas.removeserver(skt)
skt = nil
break
end
parse(resp)
end
end)
Now when I send % I see in the alerts
there was an error/usr/share/lua/genohm-scada.lua:0: bad argument #2 to 'format' (no value)
Any ideas?
Thanks,
Roger