Post your best Lua script examples here

User avatar
By picpic020960
#9946 Bonjour

Issues with upload then line number 102 lost (unexpected symbole near '?').
I can only read file with MINI WEB IDE

What loader you use ?
What is the firmware version ?

Thanks
User avatar
By MK1888
#10124 I get the same error as picpic020960, using LuaLoader. It also didn't like the "[[" stuff.

But more importantly: When I run it and connect to it via my phone, the WiFi settings in my phone says that the connection IP is 192.168.4.2.
But that IP isn't valid.
Instead, 192.168.4.1 is.
Odd!
User avatar
By GeoNomad
#10130
MK1888 wrote:I get the same error as picpic020960, using LuaLoader. It also didn't like the "[[" stuff.



That is using TEXT mode which sends line by line writes to the file. The lines end with ]] and if there are lines with ]] in them, they will end prematurely and everything after that will be garbled.

Binary mode converts all the characters to an encoded form, so the file is a perfect duplicate of the one on your computer.