22.11.2017, 09:38
Hi every body!
Sorry I working with LM5 Reactor I/O and WF2IR.
after I using script: http://openrb.com/2637-2/ and using Put this into Common functions:"function sendircmd(cmd, ip, port)
local sock, res, err
sock = require('socket').tcp()
sockettimeout(3)
res, err = sock:connect(ip, port or 4998)
if res then
res, err = sockend(cmd .. '\r')
if res then
res, err = sock:receive()
else
alert('send failed: ' .. tostring(err))
end
else
alert('connect failed: ' .. tostring(err))
end
sock:close()
return res, err
end"
But I am still error after 8 times the same Mr. Erwin van der Zwart say.
Help me
Thank you
Sorry I working with LM5 Reactor I/O and WF2IR.
after I using script: http://openrb.com/2637-2/ and using Put this into Common functions:"function sendircmd(cmd, ip, port)
local sock, res, err
sock = require('socket').tcp()
sockettimeout(3)
res, err = sock:connect(ip, port or 4998)
if res then
res, err = sockend(cmd .. '\r')
if res then
res, err = sock:receive()
else
alert('send failed: ' .. tostring(err))
end
else
alert('connect failed: ' .. tostring(err))
end
sock:close()
return res, err
end"
But I am still error after 8 times the same Mr. Erwin van der Zwart say.
Help me
Thank you