Download Motorola G24 Guide Technical information

Transcript
Chapter 2: AT Commands Reference for FTP
+FTPINFO: 550 1: No such file or directory.
+FTPRMD: 0
+FTPPWD, Print Working Directory
This command causes G24 to request the remote FTP server to return the working directory
name.
Command
Type
Set
Syntax
+FTPPWD
Response/Action
Remarks
OK
...
+FTPPWD:
<result>[,<directory_name>]
<directory_name>
parameter consists of the
directory name as well as
the directory path
(optional).
or
The command execution
result return to the user as
an unsolicited response:
ERROR: <error_code>
0 - operation fails
1 - operation success
2 - text message follows
<directory_name>
parameter follows only
when <result> = 2
Read
+FTPPWD?
ERROR
Not supported
Test
+FTPPWD=?
ERROR
Not supported
Example
The example illustrates print working directory success case.
AT+FTPPWD
OK
+FTPPWD: 2, "/home/somedir" is current directory.
+FTPPWD: 1
July 15, 2007
Using FTP with G24
2-11