I might have done something wrong, but it looks like the webrequest library does not work in an .lp file?
This script works fine in an event script, but returns an empty reply from server when doing a GET from the .lp file.
The SL is running FW 3.0.0
------ example.lp ------
This script works fine in an event script, but returns an empty reply from server when doing a GET from the .lp file.
The SL is running FW 3.0.0
------ example.lp ------
Code:
<script src="/apps/js/localbus.js.gz"></script>
<script src="/scada/vis/busdecode.js.gz"></script>
<? require('apps') ?>
<?
webrequest = require('webrequest')
vars = {
plugin = 'modbus',
request = 'profile-list'
}
res = webrequest('general', 'plugin', vars)
print(res)
?>