I am trying to understand the use of dofile() in lua. Is is good practice to put into the init.lua file a row of other files with function declarations, wifi initializations and so forth? init.lua:
dofile("InitWifi.lua")
dofile(helperfunctions.lua")
dofile(...) dofile(..)
tmr.alarm(0,3000, function()
runprogram()
end)
This would considerably cut down on download time of the program to be tested.
Is the effect of dofile(xyx.lua ) the same as if the xyz.lua code was contained in the "myprogram.lua" file?