Current Lua downloadable firmware will be posted here

User avatar
By zeroday
#3129
Hans174 wrote:
There is a LUA virtual machine in it. RAM consuming, a bad "feature".


The situation is much better by saving the LUA file in the flash memory and calling it with dofile(filename).

Are there more hints and tricks to save the precious RAM?

Hans


I'm a newbie to Lua too.
the only trick I know, delete a object by assign it a nil value if it is not needed any more.
Code: Select allcon=net.createConnection(net.TCP)
--some work to do
--everything done
con:close()
con=nil   -- this will save some ram.
User avatar
By RichardS
#3135 Heads up to the followers of this thread.... it was moved into this section dedicated to LUA and hence the URL changed from www.esp8266.com/viewtopic.php?f=6&t=534 to posting.php?mode=reply&f=17&t=588, so if you linked to it in blogs or other sites, please change it over.

Thanks!