You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jaume Olivé Petrus edited this page Jun 2, 2017
·
16 revisions
When Lua RTOS launches the Lua interpreter, and before the Lua prompt appears, 2 scripts are automatically executed. These scripts must be in the root directory:
system.lua
This script is intended for setup the system, for example enable Lua RTOS configurations disabled by default, change default configurations values, setup a network connection, etc. The system.lua script is optional, nothing happens if it's not present in the root directory.
Example:
os.loglevel(os.LOG_INFO) -- Set the syslog levelos.logcons(true) -- Show the messages generated by the syslog in the consoleos.shell(true) -- Enable the shell
autorun.lua
This script is intended for setup and launch your application, and it's executed after the system.lua completion.