Latest update: March 2015
As of firmware version 3.00.00, FlashAir now supports Lua scripting!
In this tutorial series, we’ll learn step by step about the basics of the Lua scripting on FlahsAir.
Lua is a fast, lightweight and powerful scripting language.
Lua on FlashAir opens up many new programming possibilities, and allows advanced features such as uploading files to external servers, downloading data, and dynamically generated HTML. Lua on FlashAir has some limitations. For information about these limitations as well as what libraries are available, please see the Lua API guide.
Some familiarity with the Lua scripting language would be helpful, but isn’t necessary. If you’re looking to get started with the basics, there are Lua tutorials available here.
Any text editor will work for Lua programming, however there are some IDEs available if you wish to use one.
For more information, please visit the lua-users.org website .
To run your program, you will need to copy your script to the FlashAir card using a PC with an SD card slot (called an SD host device). Next you can either execute it with an http request (ie: http://flashair/myfile.lua from a web browser), or on boot/write events. See Part 2 for more details.
The applications in this tutorial will require a FlashAir card. It can be purchased both online, and at electronics stores.
Please refer to CONFIG Reference: Set connection time-out period for more details.
All sample code on this page is licensed under BSD 2-Clause License