Lua Scripting

Last update: February 2015

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:

Available Libraries

The following library functions are available in FlashAir Lua scripting:


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