22.09.2022, 12:49
Code:
http = require('socket.http')
mime = require('mime')
cmdbool = event.getvalue()
cmdstr = tostring(cmdbool)
result1 = http.request({
url = 'https://**.**.**.**/scada-remote?m=json&r=grp&fn=write&alias=11/0/3&value=' .. cmdstr,
headers = {
Authorization = 'Basic ' .. mime.b64('remote:*******')
}
})
I tried This code but it didn't work, any idea?
Best Regards,