FW 4.00.03 was released on May 14, 2018! Here is a summary of added/modified items. To use those new items, please download and install FW 4.00.03 from here .

CONFIG

New
COMMANDCGI(FW3.00.00+)
Sets the valid opcode of command.cgi.
DHCPC_RETRANS_MAX
Sets the number of DHCP client retransmissions.
EAPCERT
Sets the file path of the TLS certificate.
EAPPASSWORD
Set PEAP password or TLS secret key password.
EAPTYPE
When EAPTYPE is set during STA mode setting, it operates in 8021X mode (WPA2 Enterprise).
EAPUSER
Sets the user ID to use when EAPTYPE is specified.
STAMAC(FW2.00.02+)
Sets the address filtering function in STA mode.
STANUM(FW2.00.02+)
Sets the connection limit in STA mode.

iSDIO

Command Reference

WLAN command

New
Connect8021X(ssid)
Connect in EAP mode.

FTP · FTPS (FlashAir original extension)

New
FTP
get(hostname, port, user, pass, serverFile, localFile)
Fetch the file from the FTP server.
put(hostName, port, user, pass, serverFile, localFile)
Send the file to the FTP server.
rename(hostName, port, user, pass, sourceFile, distinationFile)
Change the file name on the FTP server.
delete(hostName, port, user, pass, serverFile)
Delete the file on the FTP server.
getList(hostName, port, user, pass, directoryName)
Get the directory information of the FTP server.
FTPS
get(hostname, port, mode, user, pass, serverFile, localFile)
Fetch the file from the FTPS server.
put(hostName, port, mode, user, pass, serverFile, localFile)
Send the file to the FTPS server.
rename(hostName, port, mode, user, pass, sourceFile, distinationFile)
Change the file name on the FTPS server.
delete(hostName, port, mode, user, pass, serverFile)
Delete the FTPS server file.
getList(hostName, port, mode, user, pass, directoryName)
Get the directory information of the FTPS server.

Register Map

Wireless LAN function status register

New
00507h、bit0
Becomes 1b when Bridge mode is operating.
00528h、bit0~7
A value indicating EAP mode (WPA / WPA2 Enterprise) has been added.
005C8h
Get the transferred data size of HTTPClient.
005CCh
Gets the value of Content-length in the HTTP response header.
005D6h
Judge whether or not the file is being downloaded.
005F0h
The register that indicates FW version information.(Example: F24A6W3AW1.00.02)

Lua Scripting

Lua Function Reference

New
spi("init")
Initialize the interface and change the clock cycle.
spi("mode")
Sets the SPI mode.
spi("bit")
Sets the number of transfer bits.
spi("write")
Write and read. Although it can be transferred more than once, the read result can be acquired only once last.
spi("read")
Write and read. It can transfer multiple times and all read results can be acquired.
spi("cs")
Controls the chip select signal.
watchdog("start")
Start the timer of WatchDog.
watchdog("stop")
Stop the WatchDog timer.
watchdog("event")
Reset the timer of WatchDog.
watchdog("status")
Get the state of WatchDog.
control("hid_set_pass")
Sets the password for the preservation of the secret area.
control("hid_change_pass")
Change the password set for the hidden area.
control("hid_store")
Save the script to the hidden area.
control("hid_get")
Get the script saved in the hidden area.
control("hid_clear")
Delete all script files saved by password, API.
control("hid_hash")
Create a hash string with a password and the string you specify.
updated
request
Argument added.
rcvbuff
Secure memory on Lua's stack and save the received data in secured memory.
rcvfile
It saves the received HTTP response data to the specified file.
i2c
A field of the argument table was added.
ctrl
Sets the direction of PIO.
An attribute of the field "mode" of the argument table was added.
setpio
PIO setting
getpio
PIO getting
A return value was added.
data
The acquired value of PIO is stored.
control
The PIO direction setting value is stored.

Partition operation

New
Partition operation
You can access the second partition. It is possible to specify the partition by the drive letter.