This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

io.writefile call blocked
#1
Hi

I try to create an emergency light test report. I am getting en error when trying to write the file to the FTP folder in SL. 

The write code is as follows: 
Code:
CSV = rapport .. table.concat(reportBuffer, '\r\n')
result, err = io.writefile ('/home/ftp/' .. reportFile, csv)

I have activated the FTP, and can even log into it with FileZilla, but I am not writing anyting to the storage right now.

Has there been any change to shis function? Do I need to add user and password to the io.writefile? If so, what would be the syntax?
There are 10 kinds of people in the world; those who can read binary and those who don't  Cool
Reply
#2
Disable "Block unsafe functions in scripts" in Utilities > General configuration.
Reply
#3
(16.01.2023, 09:41)admin Wrote: Disable "Block unsafe functions in scripts" in Utilities > General configuration.

Great! That did it.

I got another error now, but that is probably just something in my script, so I will check that out myself...
There are 10 kinds of people in the world; those who can read binary and those who don't  Cool
Reply
#4
I have the io.writefile call blocked error on Wiser for KNX firmware 2.8 and 3.0, but there doesn't seem to be an option to allow this.

Is the option somewhere else or has the new firmware's really broken the .lp file types?

Robert.
Reply
#5
General configuration - Block unsafe functions in scripts:
------------------------------
Ctrl+F5
Reply
#6
(09.05.2025, 11:55)Daniel Wrote: General configuration - Block unsafe functions in scripts:

I could have sworn that wasn't there a minute ago :-)
Reply


Forum Jump: