it supports ROMtables) so theĬompiled output from standard luac cannot run on the ESP8266.Ĭompiling source on one platform for use on another (e.g. The NodeMCU compiler output uses different data types (e.g. If you install lua on your development PC or Laptop then you can use the standard LuaĬompiler to syntax check any Lua source before downloading it to the ESP8266 module. This can be mitigatedīy doing all compiles immediately after a node.restart()`. You will find that you will need to break your application into a lot of small andĬompilable modules in order to avoid hitting RAM constraints. The issue with both of these approaches is that compilation is RAM-intensive and hence pile() wraps this 'load and dump to file' operation into a single atomic library call. The standard string.dump (function) returns a string containing the binary code for the specified function and you can write this to a SPIFFS file. Very flexible during development, you will use less RAM resources if you precompile Whilst the Lua Virtual Machine (LVM) can compile Lua source dynamically and this can prove enduser setup / captive portal / WiFi manager.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |