Overview of FlashAir Application Development
FlashAir and Application Development
Since the FlashAir has a built in web server, Wi-Fi devices can connect to the FlashAir and access its contents using HTTP (HyperText Transfer Protocol) and any modern browser.
HTTP control allows you to do the following:
- Web server - By issuing HTTP GET requests to files on the FlashAir, you can download them. The FlashAir API includes CGI commands to get list of files and to customize your configuration.
- Script - You can execute Lua scripts on FlashAir.
- PIO - FlashAir supports PIO.
- Other - You can read from and write SRAM.
Types of HTTP connections available
You can access the contents of the FlashAir using the API (Application Programming Interface). These are the API types available:
- GET command for files
- When the wireless LAN client issues an HTTP GET command to files on the FlashAir, the FlashAir returns their contents.
- GET command for folders
- When the wireless LAN client issues an HTTP GET command to folders on the FlashAir, the FlashAir returns the Browser Utility page. The Browser Utility displays folder contents and allows you to edit them. For more information, please see the Browser Utility API Guide.
- CGI (Common Gateway Interface)
- By issuing HTTP GET command or HTTP POST command to these CGI files, you can perform special operations, check the FlashAir's status, and change settings. The following CGIs are available:
How to configure the FlashAir
You can configure the FlashAir manually by editing
/SD_WLAN/CONFIG, which can be accessed from any SD host device. To learn more about how to configure the FlashAir, please read the CONFIG CONFIG section of the API Guide.