22.07.2024, 08:03
Hello,
require('socket.http')
socket.http.TIMEOUT = 5
-- Read from object
local reply1 = socket.http.request('http://user:password@XX.XX.XX.XXX/scada-remote?m=json&r=grp&fn=getvalue&alias=0/1/3')
grp.write('5/0/0', reply1)
I tried to read one temperature with a logic machine from other logic machine. It works.
When i tried to read boolean or switch type values, it doen't work.
So i tried to send TRUE on 0/1/3 and on 5/0/0 i read TRUE
when i tried to send FALSE on 0/1/3 and on 5/0/0 i read TRUE
Can you help me please?
Best regards,
Alexandru.
require('socket.http')
socket.http.TIMEOUT = 5
-- Read from object
local reply1 = socket.http.request('http://user:password@XX.XX.XX.XXX/scada-remote?m=json&r=grp&fn=getvalue&alias=0/1/3')
grp.write('5/0/0', reply1)
I tried to read one temperature with a logic machine from other logic machine. It works.
When i tried to read boolean or switch type values, it doen't work.
So i tried to send TRUE on 0/1/3 and on 5/0/0 i read TRUE
when i tried to send FALSE on 0/1/3 and on 5/0/0 i read TRUE
Can you help me please?
Best regards,
Alexandru.