13.12.2016, 23:28
Hi Cekca,
Here is a post command to clear the alerts, it sends same command when pushing the button on the backend.
BR,
Erwin
Here is a post command to clear the alerts, it sends same command when pushing the button on the backend.
Code:
require('json')
require('socket.url')
require('socket.http')
fields = {
alerts = true,
}
data = json.encode(fields)
post = 'data=' .. socket.url.escape(data)
ip = '127.0.0.1'
username = 'admin'
password = 'admin'
res, err = socket.http.request('http://' .. username .. ':' .. password .. '@' .. ip .. '/scada-main/general/reset', post)
log(res, err)
BR,
Erwin