(28.05.2018, 08:16)Erwin van der Zwart Wrote: Hi,
The new FW requires a extra parameter 'timeout' that old FW didn't use, and also new browsers are blocking credentials in URL so i changed the script in a new methode for web requests.
Thanks to Admin for that (:
Here is the new script:
-- SNIP --
BR,
Erwin
I´m trying to rewrite the script you posted Erwin, in order to enable RTU and change the settings. However, I'm getting a error when calling the web request function:
Code:
/lib/genohm-scada/plugins/modbus/web:0: attempt to index global 'uci' (a nil value)
stack traceback:
/lib/genohm-scada/plugins/modbus/web: in function </lib/genohm-scada/plugins/modbus/web:0>
/lib/genohm-scada/plugins/modbus/web: in function </lib/genohm-scada/plugins/modbus/web:0>
[C]: in function 'webrequest'
User script:46: in main chunk
I´m guessing this has something to do with the libraries we are calling at the top, so I'm not sure what it is trying to index

Any ideas?