www.rovingnetworks.com
Version 1.0r 9/21/2012
14
RN -W IFLYCR -U M
set ftp filename <
filename
>
This command sets the name of the file that is transferred when issuing the
ftp u
command, where <
filename
> is the
firmware image. If you specify any file other than the firmware image, the WiFly module downloads the file and issues
the
UPDATE FAIL=3
error.
Default:
wifly_GSX-<
version
>.img (RN-131), wifly_EZX-<
version
>.img (RN-171)
Example:
set ftp filename my_data
// Sets the firmware image to be retrieved via FTP as
// my_data
set ftp mode <
mask
>
This command sets the ftp mode, where <
mask
> indicates active or passive mode.
Default:
0x0
Example:
set ftp mode 0x1
// Enables active FTP mode
set ftp remote <
value
>
This command sets the FTP server’s remote port number, where <
value
> is the port number.
Default:
21
Example:
set ftp remote 25
// Sets the FTP server’s remote port to 25
set ftp time <
value
>
The command sets the FTP timeout value, where <
value
> is a decimal number that is five times the number of
seconds required. The module uses this timer to close the FTP connection automatically after the specified time.
Default:
200
Example:
set ftp timer 40
// Sets a 5-second timer
set ftp timer 80
// Sets a 10-second timer
set ftp user <
string
>
This command sets the user name for accessing the FTP server, where <
string
> is up to 16 characters (16 bytes).
Default:
roving
Example:
set ftp user my_username
// Sets the user name to my_username
set ftp pass <
string
>
This command sets the password for accessing the FTP server, where <
string
> is up to 16 characters (16 bytes).
Default:
Pass123
Example:
set ftp user my_password
// Sets the user name to my_password