-->
Page 5 of 6

Re: Does not run init.lua at boot

PostPosted: Fri Jun 19, 2015 6:34 pm
by TerryE
When the Lua RTS powers up it powers up in interactive mode listening to the UART, and so you can download a program and execute it, but if you restart the node, this will get lost. But it also first looks for a file "init.lua" on the flash FS and executes it. My FAQ (link below) explains.

Re: Does not run init.lua at boot

PostPosted: Fri Jun 19, 2015 6:59 pm
by malc-c
Thanks for the quick reply, but that went right over my head. :oops:

In layman's terms ??

Re: Does not run init.lua at boot

PostPosted: Fri Jun 19, 2015 7:12 pm
by malc-c
OK I followed your example, and the LED on the GPIO is flashing at around 0.5Hz - the window in the app shows dofile("inti,lua")

but if the device is reset (soft or by power off / on) the LED stops flashing - Is there a way of loading the code to the devoice so it will run the program when rebooted ?

Re: Does not run init.lua at boot

PostPosted: Sat Jun 20, 2015 2:02 am
by cal
You can use esplorer (really version 0.1? I think i am using 0.2 for some time, cannot check currently.)
to upload the init.lua to the esp.
Using some button on the right you can list the uploaded files.
Make sure to spell "init.lua" right.

Cal