Lua Scripting

FlashAir supports the execution of programs written in Lua, which allows a lot of advanced features such as:

  • Uploading a file directly from FlashAir to a server.

  • Generating data files on FlashAir.

  • Dynamically generated HTML.

Lua scripting is available in Firmware Versions 3.00.00+.

About Lua

Lua is a powerful, fast, lightweight, embeddable scripting language.

Lua combines simple procedural syntax with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, runs by interpreting bytecode for a register-based virtual machine, and has automatic memory management with incremental garbage collection - making it ideal for configuration, scripting, and rapid prototyping.

 — Lua: about

For more about the Lua language, see:

Back to top

Available Libraries

The following library functions are available in FlashAir Lua scripting:

Back to top

Limitations

The following functions in the standard library are not available because of the memory limitations:

  • Coroutine Manipulation

  • Operating System Facilities

  • Mathematical Functions

  • The Debug Library

Back to top