13.09.2017, 13:51
This is very trivial. Next time please try using provided examples in the documentation.
Code:
http = require('socket.http')
url = require('socket.url')
http.TIMEOUT = 5
value = event.getvalue()
req = 'http://remote:remote@192.168.1.12/scada-remote?m=json&r=grp&fn=write&alias=3/2/2&value='
http.request(req .. url.escape(value))