As the title says... Chat on...

User avatar
By vayu_esp
#9704
Hans174 wrote:
Is there way with lua to do something similar and reduce the demand on the heap?


Yes, there is.

The nodeMCU version of LUA based on eLUA and eLUA programs can be stored in the FLASH area of a controller.

This should increase the heap.


could you please explain how that can be done? thanks
User avatar
By raz123
#10024
vayu_esp wrote:could you please explain how that can be done? thanks


2015-02-13
add node.compile() api to compile lua text file into lua bytecode file.
this will reduce memory usage noticeably when require modules into NodeMCU.